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

Under OS X Leopard, we seem not to consistently get the Tab key

translated for us. Be prepared to do it manually as a fallback.

[originally from svn r7913]
This commit is contained in:
Simon Tatham 2008-03-09 15:32:20 +00:00
parent 4aa9b6a0da
commit d7eda6d99c

View File

@ -723,6 +723,13 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data)
end = 1 + sprintf(output+1, "\033[Z");
use_ucsoutput = FALSE;
}
/* And normal Tab is Tab, if the keymap hasn't already told us.
* (Curiously, at least one version of the MacOS 10.5 X server
* doesn't translate Tab for us. */
if (event->keyval == GDK_Tab && end <= 1) {
output[1] = '\t';
end = 2;
}
/*
* NetHack keypad mode.