1
0
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:
lllucius 2015-01-09 16:07:24 +00:00
parent a6ace4a606
commit d87c6942cd

View File

@ -2241,7 +2241,7 @@ wxAccStatus MeterAx::GetName(int WXUNUSED(childId), wxString* name)
// Returns a role constant. // Returns a role constant.
wxAccStatus MeterAx::GetRole(int WXUNUSED(childId), wxAccRole* role) wxAccStatus MeterAx::GetRole(int WXUNUSED(childId), wxAccRole* role)
{ {
*role = wxROLE_SYSTEM_DIAGRAM; *role = wxROLE_SYSTEM_BUTTONDROPDOWN;
return wxACC_OK; return wxACC_OK;
} }
@ -2266,11 +2266,6 @@ wxAccStatus MeterAx::GetState(int WXUNUSED(childId), long* state)
*state = wxACC_STATE_SYSTEM_FOCUSABLE; *state = wxACC_STATE_SYSTEM_FOCUSABLE;
if (m->mActive)
{
*state |= wxACC_STATE_SYSTEM_BUSY;
}
// Do not use mButtonIsFocused is not set until after this method // Do not use mButtonIsFocused is not set until after this method
// is called. // is called.
*state |= ( m == wxWindow::FindFocus() ? wxACC_STATE_SYSTEM_FOCUSED : 0 ); *state |= ( m == wxWindow::FindFocus() ? wxACC_STATE_SYSTEM_FOCUSED : 0 );