using shift while pressing enter in menu will fake a button 3 press (rmb), thanks _markt

This commit is contained in:
fluxgen 2006-06-10 17:09:15 +00:00
parent fb5ef91ea4
commit e536993c92

View file

@ -1141,6 +1141,9 @@ void Menu::keyPressEvent(XKeyEvent &event) {
// send fake button 1 click
if (validIndex(m_which_press) &&
isItemEnabled(m_which_press)) {
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;