1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 08:59:28 +02:00

(Hopefully) Improve name and key views for NVDA and Window Eyes

This commit is contained in:
lllucius 2013-11-06 21:11:21 +00:00
parent 5a53913e87
commit be409578aa

View File

@ -1841,7 +1841,7 @@ KeyViewAx::SetCurrentLine(int line)
mLastId); mLastId);
} }
// Nothing is now selected // Nothing is selected now
mLastId = -1; mLastId = -1;
// Just clearing selection // Just clearing selection
@ -2140,7 +2140,7 @@ KeyViewAx::GetState(int childId, long *state)
} }
#if defined(__WXMSW__) #if defined(__WXMSW__)
int selected = mView->GetSelected(); int selected = mView->GetSelection();
flag |= wxACC_STATE_SYSTEM_SELECTABLE; flag |= wxACC_STATE_SYSTEM_SELECTABLE;
@ -2187,17 +2187,22 @@ KeyViewAx::GetValue(int childId, wxString *strValue)
{ {
int line; int line;
strValue->Clear();
if (!IdToLine(childId, line)) if (!IdToLine(childId, line))
{ {
strValue->Clear(); return wxACC_NOT_IMPLEMENTED;
return wxACC_FAIL;
} }
#if defined(__WXMSW__) #if defined(__WXMSW__)
KeyNode *node = mView->mLines[line]; if (mView->GetViewType() == ViewByTree)
strValue->Printf(wxT("%d"), node->depth - 1); {
KeyNode *node = mView->mLines[line];
strValue->Printf(wxT("%d"), node->depth - 1);
}
return wxACC_OK; // Don't set a value for the other view types
return wxACC_NOT_IMPLEMENTED;
#endif #endif
#if defined(__WXMAC__) #if defined(__WXMAC__)