mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-11 09:31:13 +02:00
A couple more accessibility changes
This commit is contained in:
parent
a6ace4a606
commit
d87c6942cd
@ -2241,7 +2241,7 @@ wxAccStatus MeterAx::GetName(int WXUNUSED(childId), wxString* name)
|
||||
// Returns a role constant.
|
||||
wxAccStatus MeterAx::GetRole(int WXUNUSED(childId), wxAccRole* role)
|
||||
{
|
||||
*role = wxROLE_SYSTEM_DIAGRAM;
|
||||
*role = wxROLE_SYSTEM_BUTTONDROPDOWN;
|
||||
|
||||
return wxACC_OK;
|
||||
}
|
||||
@ -2266,11 +2266,6 @@ wxAccStatus MeterAx::GetState(int WXUNUSED(childId), long* state)
|
||||
|
||||
*state = wxACC_STATE_SYSTEM_FOCUSABLE;
|
||||
|
||||
if (m->mActive)
|
||||
{
|
||||
*state |= wxACC_STATE_SYSTEM_BUSY;
|
||||
}
|
||||
|
||||
// Do not use mButtonIsFocused is not set until after this method
|
||||
// is called.
|
||||
*state |= ( m == wxWindow::FindFocus() ? wxACC_STATE_SYSTEM_FOCUSED : 0 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user