aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/editdialog.go
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-09-09 13:10:44 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-04 11:43:09 +0200
commit6cd634340a2f43097f1deb457c710357d67af2f0 (patch)
tree05c51b02404da6ebd3368f0275f1ef918af4f01d /ui/editdialog.go
parentmod: bump versions (diff)
downloadwireguard-windows-6cd634340a2f43097f1deb457c710357d67af2f0.tar.xz
wireguard-windows-6cd634340a2f43097f1deb457c710357d67af2f0.zip
ui: annotate controls
Regarding interface and peer info text boxes: The read-only edit boxes containing interface and peer status and information were read as "<value> read-only multiline" by NVDA screen reader. The read-only edit boxes that serve the informative purpose only must be annotated as ROLE_SYSTEM_STATICTEXT instead of edit box-inherited ROLE_SYSTEM_TEXT role. Regarding logo image in about dialog: NVDA reads "unknown" when reading the dialog without this patch. Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to '')
-rw-r--r--ui/editdialog.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/editdialog.go b/ui/editdialog.go
index 142d47a2..191b3330 100644
--- a/ui/editdialog.go
+++ b/ui/editdialog.go
@@ -108,11 +108,14 @@ func newEditDialog(owner walk.Form, tunnel *manager.Tunnel) (*EditDialog, error)
layout.SetRange(dlg.pubkeyEdit, walk.Rectangle{1, 1, 1, 1})
dlg.pubkeyEdit.SetReadOnly(true)
dlg.pubkeyEdit.SetText("(unknown)")
+ dlg.pubkeyEdit.Accessibility().SetRole(walk.AccRoleStatictext)
if dlg.syntaxEdit, err = syntax.NewSyntaxEdit(dlg); err != nil {
return nil, err
}
layout.SetRange(dlg.syntaxEdit, walk.Rectangle{0, 2, 2, 1})
+ // TODO: This doesn't work - RTF control overrides us with "RichEdit Control".
+ dlg.syntaxEdit.Accessibility().SetName("Configuration")
buttonsContainer, err := walk.NewComposite(dlg)
if err != nil {