1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-28 14:18:41 +02:00

NumericTextCtrl: fix minor bug with NVDA screen reader

Problem: with using up/down arrow NVDA reads the updated field twice.

Fix: remove generation of an unnecessary event.
This commit is contained in:
David Bailes 2018-05-16 14:10:53 +01:00
parent 32212d7fcd
commit 4221549ec9

View File

@ -1857,10 +1857,6 @@ void NumericTextCtrl::Updated(bool keyup /* = false */)
#if wxUSE_ACCESSIBILITY
if (!keyup) {
GetAccessible()->NotifyEvent(wxACC_EVENT_OBJECT_NAMECHANGE,
this,
wxOBJID_CLIENT,
mFocusedDigit + 1);
SetFieldFocus(mFocusedDigit);
}
#endif