Add a keyboard shortcut for the "serial" protocol to the GUI.
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Fri, 13 Nov 2009 13:24:32 +0000 (13:24 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Fri, 13 Nov 2009 13:24:32 +0000 (13:24 +0000)
Will cause non-zero, but hopefully acceptable, disruption to people's finger
macros.

git-svn-id: svn://svn.tartarus.org/sgt/putty@8749 cda61777-01e9-0310-a592-d414129be87e

config.c
sercfg.c

index d0931f8..f44b760 100644 (file)
--- a/config.c
+++ b/config.c
@@ -1176,7 +1176,7 @@ void setup_config_box(struct controlbox *b, int midsession,
            ctrl_radiobuttons(s, "Connection type:", NO_SHORTCUT, 3,
                              HELPCTX(session_hostname),
                              config_protocolbuttons_handler, P(hp),
-                             "Raw", 'r', I(PROT_RAW),
+                             "Raw", 'w', I(PROT_RAW),
                              "Telnet", 't', I(PROT_TELNET),
                              "Rlogin", 'i', I(PROT_RLOGIN),
                              NULL);
@@ -1184,7 +1184,7 @@ void setup_config_box(struct controlbox *b, int midsession,
            ctrl_radiobuttons(s, "Connection type:", NO_SHORTCUT, 4,
                              HELPCTX(session_hostname),
                              config_protocolbuttons_handler, P(hp),
-                             "Raw", 'r', I(PROT_RAW),
+                             "Raw", 'w', I(PROT_RAW),
                              "Telnet", 't', I(PROT_TELNET),
                              "Rlogin", 'i', I(PROT_RLOGIN),
                              "SSH", 's', I(PROT_SSH),
@@ -1242,7 +1242,7 @@ void setup_config_box(struct controlbox *b, int midsession,
     ctrl_columns(s, 1, 100);
 
     s = ctrl_getset(b, "Session", "otheropts", NULL);
-    c = ctrl_radiobuttons(s, "Close window on exit:", 'w', 4,
+    c = ctrl_radiobuttons(s, "Close window on exit:", 'x', 4,
                          HELPCTX(session_coe),
                          dlg_stdradiobutton_handler,
                          I(offsetof(Config, close_on_exit)),
index b0842ea..fc26737 100644 (file)
--- a/sercfg.c
+++ b/sercfg.c
@@ -150,7 +150,7 @@ void ser_setup_config_box(struct controlbox *b, int midsession,
                if (c->radio.shortcuts) {
                    c->radio.shortcuts =
                        sresize(c->radio.shortcuts, c->radio.nbuttons, char);
-                   c->radio.shortcuts[c->radio.nbuttons-1] = NO_SHORTCUT;
+                   c->radio.shortcuts[c->radio.nbuttons-1] = 'r';
                }
            }
        }