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:
parent
1bcab77eb1
commit
476e09832f
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user