From c8951a1853dfd43aeb43394b9fa1682c3f0db743 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 16 Mar 2005 19:46:14 +0000 Subject: Fixed units in the modify dialog; Disabled all shortcut keys when the user is entering text. git-svn-id: http://svn.leocad.org/trunk@392 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/Mainfrm.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'win/Mainfrm.cpp') diff --git a/win/Mainfrm.cpp b/win/Mainfrm.cpp index dba878f..2c0ad18 100644 --- a/win/Mainfrm.cpp +++ b/win/Mainfrm.cpp @@ -1113,6 +1113,22 @@ BOOL CMainFrame::PreTranslateMessage(MSG* pMsg) bool Shift = GetKeyState(VK_SHIFT) < 0; // Don't process key presses if the user is typing text. + if (!Control) + { + if (m_wndPiecesBar.m_wndPiecesCombo.IsChild(GetFocus()) || + m_wndPiecesBar.m_wndPiecesList.IsChild(GetFocus())) + { + return CFrameWnd::PreTranslateMessage(pMsg); + } + + char Name[256]; + GetClassName(GetFocus()->m_hWnd, Name, sizeof(Name)); + if (!strcmp(Name, "Edit")) + { + return CFrameWnd::PreTranslateMessage(pMsg); + } + } + if (m_wndPiecesBar.m_wndPiecesCombo.IsChild(GetFocus()) || m_wndPiecesBar.m_wndPiecesList.IsChild(GetFocus())) { -- cgit v1.2.3