Skip to content

Commit

Permalink
Fix Shift+Down/Up Accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-shinde-442 committed Sep 28, 2024
1 parent 5fd9c73 commit ca2e724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/framework/shortcuts/view/editshortcutmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ void EditShortcutModel::inputKey(Qt::Key key, Qt::KeyboardModifiers modifiers)
}

// remove shift-modifier for keys that don't need it: letters and special keys
if ((modifiers & Qt::ShiftModifier) && ((key < Qt::Key_A) || (key > Qt::Key_Z) || (key >= Qt::Key_Escape))) {
if ((modifiers & Qt::ShiftModifier)
&& ((key < Qt::Key_A || key > Qt::Key_Z) && key != Qt::Key_Up && key != Qt::Key_Down && key >= Qt::Key_Escape)) {
modifiers &= ~Qt::ShiftModifier;
}

Expand Down

0 comments on commit ca2e724

Please sign in to comment.