summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Menu.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index 4bdc597..ce751d9 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -1058,11 +1058,11 @@ void Menu::keyPressEvent(XKeyEvent &event) {
1058 resetTypeAhead(); 1058 resetTypeAhead();
1059 if (validIndex(m_active_index) && 1059 if (validIndex(m_active_index) &&
1060 isItemEnabled(m_active_index)) { 1060 isItemEnabled(m_active_index)) {
1061 if (menuitems[m_active_index]->submenu() != 0) 1061 // send fake button click
1062 int button = (event.state & ShiftMask) ? 3 : 1;
1063 if (menuitems[m_active_index]->submenu() != 0 && button == 1)
1062 enterSubmenu(); 1064 enterSubmenu();
1063 else { 1065 else {
1064 // send fake button click
1065 int button = (event.state & ShiftMask) ? 3 : 1;
1066 find(m_active_index)->click(button, event.time, event.state); 1066 find(m_active_index)->click(button, event.time, event.state);
1067 m_need_update = true; 1067 m_need_update = true;
1068 updateMenu(); 1068 updateMenu();