1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

gtkwin: let ctrl-key fix works without debug mode

let 8dfc39bf works when KEY_EVENT_DIAGNOSTICS is not defined
This commit is contained in:
Sean Ho 2021-01-11 10:52:34 +08:00 committed by Simon Tatham
parent 1bcab77eb1
commit 476e09832f

View File

@ -1696,16 +1696,18 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data)
}
/* Anything else, e.g. '0', is unchanged. */
#ifdef KEY_EVENT_DIAGNOSTICS
if (orig == new) {
#ifdef KEY_EVENT_DIAGNOSTICS
debug(" - manual Ctrl key handling did nothing\n");
#endif
} else {
#ifdef KEY_EVENT_DIAGNOSTICS
debug(" - manual Ctrl key handling: %02x -> %02x\n",
(unsigned)orig, (unsigned)new);
#endif
output[1] = new;
use_ucsoutput = false;
}
#endif
}
/* Control-Break sends a Break special to the backend */