diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/Menu.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index 63f3958..d400e00 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc | |||
@@ -1141,7 +1141,10 @@ void Menu::keyPressEvent(XKeyEvent &event) { | |||
1141 | // send fake button 1 click | 1141 | // send fake button 1 click |
1142 | if (validIndex(m_which_press) && | 1142 | if (validIndex(m_which_press) && |
1143 | isItemEnabled(m_which_press)) { | 1143 | isItemEnabled(m_which_press)) { |
1144 | menuitems[m_which_press]->click(1, event.time); | 1144 | if (event.state & ShiftMask) |
1145 | menuitems[m_which_press]->click(3, event.time); | ||
1146 | else | ||
1147 | menuitems[m_which_press]->click(1, event.time); | ||
1145 | itemSelected(1, m_which_press); | 1148 | itemSelected(1, m_which_press); |
1146 | m_need_update = true; | 1149 | m_need_update = true; |
1147 | updateMenu(); | 1150 | updateMenu(); |