Skip to content

Commit

Permalink
Fix Shift+Down/Up Accessibility
Browse files Browse the repository at this point in the history
Backport of musescore#24958
  • Loading branch information
shubham-shinde-442 authored and Jojo-Schmitz committed Sep 28, 2024
1 parent 4cfc597 commit b96451a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mscore/shortcutcapturedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ void ShortcutCaptureDialog::keyPress(QKeyEvent* e)

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

Expand Down

0 comments on commit b96451a

Please sign in to comment.