From d2a8ecd7c1cee437374e05960a4da90643e39a5b Mon Sep 17 00:00:00 2001 From: Abs62 Date: Mon, 29 Apr 2013 20:52:15 +0400 Subject: [PATCH] Win-specific: Fix Ctrl+Ins pass-through in hotkey wrapper --- hotkeywrapper.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hotkeywrapper.cc b/hotkeywrapper.cc index 17785b93..a767abca 100644 --- a/hotkeywrapper.cc +++ b/hotkeywrapper.cc @@ -131,9 +131,9 @@ bool HotkeyWrapper::checkState(quint32 vk, quint32 mod) memset( i, 0, sizeof( i ) ); i[ 0 ].type = INPUT_KEYBOARD; - i[ 0 ].ki.wVk = 'C'; + i[ 0 ].ki.wVk = ( vk == VK_INSERT ? VK_INSERT : 'C' ); i[ 1 ].type = INPUT_KEYBOARD; - i[ 1 ].ki.wVk = 'C'; + i[ 1 ].ki.wVk = i[ 0 ].ki.wVk; i[ 1 ].ki.dwFlags = KEYEVENTF_KEYUP; UnregisterHotKey( hwnd, hs.id );