Oops - that fix wasn't _quite_ right, since it killed all

non-function keys completely :-/

[originally from svn r2096]
This commit is contained in:
Simon Tatham 2002-10-17 16:58:24 +00:00
Родитель 7d7b523977
Коммит dc7afc9ca7
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -431,10 +431,11 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data)
strncpy(output+1, event->string, 31); strncpy(output+1, event->string, 31);
output[31] = '\0'; output[31] = '\0';
end = strlen(output); end = strlen(output);
if (event->state & GDK_MOD1_MASK) if (event->state & GDK_MOD1_MASK) {
start = end = 0; start = 0;
else if (end == 1) end = 0;
start = end = 1; } else
start = 1;
/* Control-` is the same as Control-\ (unless gtk has a better idea) */ /* Control-` is the same as Control-\ (unless gtk has a better idea) */
if (!event->string[0] && event->keyval == '`' && if (!event->string[0] && event->keyval == '`' &&