aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/editdialog.go
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-08-29 14:33:30 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-30 08:47:21 -0600
commitc61896ee2718cefba3b02fa6c69ad4a71e688caa (patch)
tree87e2e3739e1a893e6d1fe09a43874d3e8d8c8d55 /ui/editdialog.go
parentmain: display localized "Administrators" group name (diff)
downloadwireguard-windows-c61896ee2718cefba3b02fa6c69ad4a71e688caa.tar.xz
wireguard-windows-c61896ee2718cefba3b02fa6c69ad4a71e688caa.zip
ui: add label mnemonics
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'ui/editdialog.go')
-rw-r--r--ui/editdialog.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/editdialog.go b/ui/editdialog.go
index fec2f4d2..142d47a2 100644
--- a/ui/editdialog.go
+++ b/ui/editdialog.go
@@ -86,7 +86,7 @@ func newEditDialog(owner walk.Form, tunnel *manager.Tunnel) (*EditDialog, error)
}
layout.SetRange(nameLabel, walk.Rectangle{0, 0, 1, 1})
nameLabel.SetTextAlignment(walk.AlignHFarVCenter)
- nameLabel.SetText("Name:")
+ nameLabel.SetText("&Name:")
if dlg.nameEdit, err = walk.NewLineEdit(dlg); err != nil {
return nil, err
@@ -100,7 +100,7 @@ func newEditDialog(owner walk.Form, tunnel *manager.Tunnel) (*EditDialog, error)
}
layout.SetRange(pubkeyLabel, walk.Rectangle{0, 1, 1, 1})
pubkeyLabel.SetTextAlignment(walk.AlignHFarVCenter)
- pubkeyLabel.SetText("Public key:")
+ pubkeyLabel.SetText("&Public key:")
if dlg.pubkeyEdit, err = walk.NewLineEdit(dlg); err != nil {
return nil, err
@@ -125,7 +125,7 @@ func newEditDialog(owner walk.Form, tunnel *manager.Tunnel) (*EditDialog, error)
if dlg.blockUntunneledTrafficCB, err = walk.NewCheckBox(buttonsContainer); err != nil {
return nil, err
}
- dlg.blockUntunneledTrafficCB.SetText("Block untunneled traffic (kill-switch)")
+ dlg.blockUntunneledTrafficCB.SetText("&Block untunneled traffic (kill-switch)")
dlg.blockUntunneledTrafficCB.SetToolTipText("When a configuration has exactly one peer, and that peer has an allowed IPs containing at least one of 0.0.0.0/0 or ::/0, then the tunnel service engages a firewall ruleset to block all traffic that is neither to nor from the tunnel interface, with special exceptions for DHCP and NDP.")
dlg.blockUntunneledTrafficCB.SetVisible(false)
dlg.blockUntunneledTrafficCB.CheckedChanged().Attach(dlg.onBlockUntunneledTrafficCBCheckedChanged)
@@ -135,7 +135,7 @@ func newEditDialog(owner walk.Form, tunnel *manager.Tunnel) (*EditDialog, error)
if dlg.saveButton, err = walk.NewPushButton(buttonsContainer); err != nil {
return nil, err
}
- dlg.saveButton.SetText("Save")
+ dlg.saveButton.SetText("&Save")
dlg.saveButton.Clicked().Attach(dlg.onSaveButtonClicked)
cancelButton, err := walk.NewPushButton(buttonsContainer)