aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2006-06-10 17:09:15 (GMT)
committerfluxgen <fluxgen>2006-06-10 17:09:15 (GMT)
commite536993c927b8ab391dd51751ef33c6535e296ba (patch)
treeb627a9df835048bcf2149f6fd692d373c69773f9 /src/FbTk
parentfb5ef91ea4ffd909bb2f4d5d9f2e946169eac470 (diff)
downloadfluxbox-e536993c927b8ab391dd51751ef33c6535e296ba.zip
fluxbox-e536993c927b8ab391dd51751ef33c6535e296ba.tar.bz2
using shift while pressing enter in menu will fake a button 3 press (rmb), thanks _markt
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Menu.cc5
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();