From e536993c927b8ab391dd51751ef33c6535e296ba Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 10 Jun 2006 17:09:15 +0000 Subject: using shift while pressing enter in menu will fake a button 3 press (rmb), thanks _markt --- src/FbTk/Menu.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { // send fake button 1 click if (validIndex(m_which_press) && isItemEnabled(m_which_press)) { - menuitems[m_which_press]->click(1, event.time); + if (event.state & ShiftMask) + menuitems[m_which_press]->click(3, event.time); + else + menuitems[m_which_press]->click(1, event.time); itemSelected(1, m_which_press); m_need_update = true; updateMenu(); -- cgit v0.11.2