mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 05:37:12 -05:00
include aria-label in top toolbar
qt doesn't seem to support it at the moment though https://anki.tenderapp.com/discussions/beta-testing/1130-latest-anki-beta-not-accessible-with-voiceover-on-mac-os
This commit is contained in:
parent
bfa8fe9022
commit
cfaedfef4a
1 changed files with 2 additions and 2 deletions
|
|
@ -42,8 +42,8 @@ class Toolbar:
|
||||||
buf = ""
|
buf = ""
|
||||||
for ln, name, title in links:
|
for ln, name, title in links:
|
||||||
buf += '''
|
buf += '''
|
||||||
<a class=hitem title="%s" href=# onclick="pycmd('%s')">%s</a>''' % (
|
<a class=hitem aria-label="%s" title="%s" href=# onclick="pycmd('%s')">%s</a>''' % (
|
||||||
title, ln, name)
|
name, title, ln, name)
|
||||||
return buf
|
return buf
|
||||||
|
|
||||||
# Link handling
|
# Link handling
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue