Everyone's favourite trivial change: Shift-Ins now pastes
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 22 Sep 2000 13:23:35 +0000 (13:23 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 22 Sep 2000 13:23:35 +0000 (13:23 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@616 cda61777-01e9-0310-a592-d414129be87e

window.c

index 9c973fa..9a36562 100644 (file)
--- a/window.c
+++ b/window.c
@@ -1799,6 +1799,11 @@ static WPARAM compose_key = 0;
             SendMessage (hwnd, WM_VSCROLL, SB_PAGEDOWN, 0);
             return 0;
        }
+        if (wParam == VK_INSERT && shift_state == 1) {
+            term_mouse (MB_PASTE, MA_CLICK, 0, 0);
+            term_mouse (MB_PASTE, MA_RELEASE, 0, 0);
+            return 0;
+        }
        if (left_alt && wParam == VK_F4 && cfg.alt_f4) {
             return -1;
        }