Browse Source

Add back in right click menu

Scott Brogden 9 years ago
parent
commit
e6c22361b1
2 changed files with 7 additions and 1 deletions
  1. 5 0
      Accels.cpp
  2. 2 1
      ActionEnums.cpp

+ 5 - 0
Accels.cpp

@@ -9,6 +9,7 @@ CAccels::CAccels()
 	m_activeFirstKey = 0;
 }
 
+
 void CAccels::AddAccel(CAccel a)
 {
 	m_multiMap.insert(pair<DWORD, CAccel>(a.Key, a));
@@ -16,6 +17,10 @@ void CAccels::AddAccel(CAccel a)
 
 void CAccels::AddAccel(DWORD cmd, DWORD key, DWORD key2)
 {
+	if ((int)key2 <= 0)
+	{
+		key2 = 0;
+	}
 	CAccel a(key, cmd, key2);
 
 	m_multiMap.insert(pair<DWORD, CAccel>(key, a));

+ 2 - 1
ActionEnums.cpp

@@ -155,6 +155,8 @@ int ActionEnums::GetDefaultShortCutKeyA(ActionEnumValues value, int pos)
 			return ACCEL_MAKEKEY(VK_F2, HOTKEYF_CONTROL);
 		case ActionEnums::PASTE_SELECTED:
 			return VK_RETURN;
+		case ActionEnums::SHOWMENU:
+			return VK_MOUSE_RIGHT_CLICK;
 		}
 		break;
 	case 1:
@@ -203,7 +205,6 @@ bool ActionEnums::UserConfigurable(ActionEnumValues value)
 	case ActionEnums::TOGGLEOUTPUTDEBUGSTRING:
 	case ActionEnums::HOMELIST:
 	case ActionEnums::CLOSEWINDOW:
-	case ActionEnums::SHOWMENU:
 		return false;
 	}