mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -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:
parent
1bcab77eb1
commit
476e09832f
@ -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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user