Skip to content

Commit

Permalink
Fixed the keypad navigation in main menu
Browse files Browse the repository at this point in the history
Fixes lxqt#1558
  • Loading branch information
tsujan committed May 1, 2021
1 parent 6a28fa3 commit 11b0339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin-mainmenu/lxqtmainmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ bool LXQtMainMenu::eventFilter(QObject *obj, QEvent *event)
{
// if our shortcut key is pressed while the menu is open, close the menu
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
if (keyEvent->modifiers() & ~Qt::ShiftModifier)
if (keyEvent->modifiers() & ~(Qt::ShiftModifier | Qt::KeypadModifier))
{
mHideTimer.start();
mMenu->hide(); // close the app menu
Expand Down

0 comments on commit 11b0339

Please sign in to comment.