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:
parent
ffff6f32c7
commit
b4cf83ed6b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user