Browse Source

removed windows key bit mask when setting the shortcut key control, was causing the wrong text to show in the shortcut key control

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@614 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 14 years ago
parent
commit
b42674e60a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      HotKeys.cpp

+ 2 - 1
HotKeys.cpp

@@ -178,8 +178,9 @@ void CHotKey::CopyFromCtrl(CHotKeyCtrl& ctrl, HWND hParent, int nWindowsCBID)
 void CHotKey::CopyToCtrl(CHotKeyCtrl& ctrl, HWND hParent, int nWindowsCBID)
 {
 	long lModifiers = HIBYTE(m_Key);
+	long keys = LOBYTE(m_Key);
 
-	ctrl.SetHotKey(LOBYTE(m_Key), (WORD)lModifiers); 
+	ctrl.SetHotKey(keys, (WORD)lModifiers & ~HOTKEYF_EXT); 
 
 	if(lModifiers & HOTKEYF_EXT)
 	{