mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05: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:
@ -1696,16 +1696,18 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data)
|
|||||||
}
|
}
|
||||||
/* Anything else, e.g. '0', is unchanged. */
|
/* Anything else, e.g. '0', is unchanged. */
|
||||||
|
|
||||||
#ifdef KEY_EVENT_DIAGNOSTICS
|
|
||||||
if (orig == new) {
|
if (orig == new) {
|
||||||
|
#ifdef KEY_EVENT_DIAGNOSTICS
|
||||||
debug(" - manual Ctrl key handling did nothing\n");
|
debug(" - manual Ctrl key handling did nothing\n");
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
#ifdef KEY_EVENT_DIAGNOSTICS
|
||||||
debug(" - manual Ctrl key handling: %02x -> %02x\n",
|
debug(" - manual Ctrl key handling: %02x -> %02x\n",
|
||||||
(unsigned)orig, (unsigned)new);
|
(unsigned)orig, (unsigned)new);
|
||||||
|
#endif
|
||||||
output[1] = new;
|
output[1] = new;
|
||||||
use_ucsoutput = false;
|
use_ucsoutput = false;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Control-Break sends a Break special to the backend */
|
/* Control-Break sends a Break special to the backend */
|
||||||
|
Reference in New Issue
Block a user