mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 17:09:26 +02:00
(Hopefully) Improve name and key views for NVDA and Window Eyes
This commit is contained in:
parent
5a53913e87
commit
be409578aa
@ -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__)
|
||||||
|
if (mView->GetViewType() == ViewByTree)
|
||||||
|
{
|
||||||
KeyNode *node = mView->mLines[line];
|
KeyNode *node = mView->mLines[line];
|
||||||
strValue->Printf(wxT("%d"), node->depth - 1);
|
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__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user