Skip to content

Commit

Permalink
fix #306726 Screen readers: Restore speech during note input
Browse files Browse the repository at this point in the history
Fixes an accessibility bug in commit 3960396 in PR #6173 that caused
the screen reader to say "note input mode" periodically rather than
just once upon entering that mode. This interfered with the usual
screen reader output for that mode.

Also displays mode text for "Normal mode".
  • Loading branch information
shoogle committed Jun 15, 2020
1 parent 00297d8 commit 5f38b3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mscore/musescore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4272,10 +4272,11 @@ void MuseScore::inputMethodVisibleChanged()

void MuseScore::showModeText(const QString& s)
{
if (s == _modeText->text())
return;
if (cs)
cs->setAccessibleMessage(s);
_modeText->setText(s);
_modeText->show();
}

//---------------------------------------------------------
Expand Down Expand Up @@ -4389,7 +4390,7 @@ void MuseScore::changeState(ScoreState val)
showPianoKeyboard(false);
break;
case STATE_NORMAL:
_modeText->hide();
showModeText(tr("Normal mode"));;
break;
case STATE_NOTE_ENTRY:
if (cv && !cv->noteEntryMode())
Expand Down

0 comments on commit 5f38b3b

Please sign in to comment.