Skip to content

Commit

Permalink
13451: Do not activate the main menu with Ctrl+Alt key combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
krasko78 committed Jan 1, 2025
1 parent 14d5921 commit da583ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/appshell/view/navigableappmenumodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,11 @@ bool NavigableAppMenuModel::processEventForAppMenu(QEvent* event)
bool isNavigationWithSymbol = !modifiers
&& isSingleSymbol
&& isNavigationStarted;
bool isNavigationWithAlt = (modifiers & Qt::AltModifier)
&& !(modifiers & Qt::ShiftModifier)
bool isNavigationWithAlt = (modifiers == Qt::AltModifier)
&& isSingleSymbol;

bool isAltKey = key == Qt::Key_Alt
&& key != Qt::Key_Shift
&& !(modifiers & Qt::ControlModifier)
&& !(modifiers & Qt::ShiftModifier);

switch (event->type()) {
Expand Down

0 comments on commit da583ca

Please sign in to comment.