using shift while pressing enter in menu will fake a button 3 press (rmb), thanks _markt
This commit is contained in:
parent
fb5ef91ea4
commit
e536993c92
1 changed files with 4 additions and 1 deletions
|
@ -1141,7 +1141,10 @@ void Menu::keyPressEvent(XKeyEvent &event) {
|
||||||
// send fake button 1 click
|
// send fake button 1 click
|
||||||
if (validIndex(m_which_press) &&
|
if (validIndex(m_which_press) &&
|
||||||
isItemEnabled(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);
|
itemSelected(1, m_which_press);
|
||||||
m_need_update = true;
|
m_need_update = true;
|
||||||
updateMenu();
|
updateMenu();
|
||||||
|
|
Loading…
Reference in a new issue