зеркало из https://github.com/github/putty.git
Oops - that fix wasn't _quite_ right, since it killed all
non-function keys completely :-/ [originally from svn r2096]
This commit is contained in:
Родитель
7d7b523977
Коммит
dc7afc9ca7
|
@ -431,10 +431,11 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data)
|
|||
strncpy(output+1, event->string, 31);
|
||||
output[31] = '\0';
|
||||
end = strlen(output);
|
||||
if (event->state & GDK_MOD1_MASK)
|
||||
start = end = 0;
|
||||
else
|
||||
start = end = 1;
|
||||
if (event->state & GDK_MOD1_MASK) {
|
||||
start = 0;
|
||||
if (end == 1) end = 0;
|
||||
} else
|
||||
start = 1;
|
||||
|
||||
/* Control-` is the same as Control-\ (unless gtk has a better idea) */
|
||||
if (!event->string[0] && event->keyval == '`' &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче