]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Handle the Ctrl modifier key ourselves if necessary.
authorSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 12:00:42 +0000 (13:00 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 12:21:50 +0000 (13:21 +0100)
commit7acb747a7d7e6835f07240f27b3b382155815600
tree0a63619d5a0a9da4abb1f7eec9049c40977eb0f4
parent69737b24b56d7f7befc27e473f8a61a7e32af5b6
Handle the Ctrl modifier key ourselves if necessary.

The Quartz GDK back end, if you press (say) Ctrl-A, will generate a
GdkKeyEvent with keyval='a' and state=CONTROL, but it'll have a
translated string of "a" where the X back end would have returned
"\001". So we have to do our own translation, which fortunately isn't
hard.
unix/gtkwin.c