1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Shift-Ins pastes.

[originally from svn r2034]
This commit is contained in:
Simon Tatham 2002-10-13 11:27:39 +00:00
parent ffff6f32c7
commit b4cf83ed6b

View File

@ -274,7 +274,6 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data)
* - nethack mode
* - alt+numpad
* - Compose key (!!! requires Unicode faff before even trying)
* - Shift-Ins for paste (need to deal with pasting first)
*/
/*
@ -290,6 +289,14 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data)
return TRUE;
}
/*
* Neither does Shift-Ins.
*/
if (event->keyval == GDK_Insert && (event->state & GDK_SHIFT_MASK)) {
request_paste();
return TRUE;
}
/* ALT+things gives leading Escape. */
output[0] = '\033';
strncpy(output+1, event->string, 31);