1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Add keyboard accelerators for IPv4/IPv6 selections options.

(Also for `window_border'.)

[originally from svn r5610]
This commit is contained in:
Jacob Nevins 2005-04-07 01:42:36 +00:00
parent 52a17ab04a
commit 6672c98d06

View File

@ -1242,7 +1242,7 @@ void setup_config_box(struct controlbox *b, int midsession,
s = ctrl_getset(b, "Window/Appearance", "border", s = ctrl_getset(b, "Window/Appearance", "border",
"Adjust the window border"); "Adjust the window border");
ctrl_editbox(s, "Gap between text and window edge:", NO_SHORTCUT, 20, ctrl_editbox(s, "Gap between text and window edge:", 'e', 20,
HELPCTX(appearance_border), HELPCTX(appearance_border),
dlg_stdeditbox_handler, dlg_stdeditbox_handler,
I(offsetof(Config,window_border)), I(-1)); I(offsetof(Config,window_border)), I(-1));
@ -1423,9 +1423,9 @@ void setup_config_box(struct controlbox *b, int midsession,
HELPCTX(connection_ipversion), HELPCTX(connection_ipversion),
dlg_stdradiobutton_handler, dlg_stdradiobutton_handler,
I(offsetof(Config, addressfamily)), I(offsetof(Config, addressfamily)),
"Auto", NO_SHORTCUT, I(ADDRTYPE_UNSPEC), "Auto", 'u', I(ADDRTYPE_UNSPEC),
"IPv4", NO_SHORTCUT, I(ADDRTYPE_IPV4), "IPv4", '4', I(ADDRTYPE_IPV4),
"IPv6", NO_SHORTCUT, I(ADDRTYPE_IPV6), "IPv6", '6', I(ADDRTYPE_IPV6),
NULL); NULL);
#endif #endif
} }
@ -1839,9 +1839,9 @@ void setup_config_box(struct controlbox *b, int midsession,
ctrl_radiobuttons(s, NULL, NO_SHORTCUT, 3, ctrl_radiobuttons(s, NULL, NO_SHORTCUT, 3,
HELPCTX(ssh_tunnels_portfwd_ipversion), HELPCTX(ssh_tunnels_portfwd_ipversion),
portfwd_handler, P(pfd), portfwd_handler, P(pfd),
"Auto", NO_SHORTCUT, I(ADDRTYPE_UNSPEC), "Auto", 'u', I(ADDRTYPE_UNSPEC),
"IPv4", NO_SHORTCUT, I(ADDRTYPE_IPV4), "IPv4", '4', I(ADDRTYPE_IPV4),
"IPv6", NO_SHORTCUT, I(ADDRTYPE_IPV6), "IPv6", '6', I(ADDRTYPE_IPV6),
NULL); NULL);
#endif #endif
ctrl_tabdelay(s, pfd->addbutton); ctrl_tabdelay(s, pfd->addbutton);