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 Dec 31, 2024
1 parent 14d5921 commit d16f11f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/appshell/view/navigableappmenumodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,13 @@ bool NavigableAppMenuModel::processEventForAppMenu(QEvent* event)
&& isSingleSymbol
&& isNavigationStarted;
bool isNavigationWithAlt = (modifiers & Qt::AltModifier)
&& !(modifiers & Qt::ControlModifier)
&& !(modifiers & Qt::ShiftModifier)
&& 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 d16f11f

Please sign in to comment.