mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Win-specific: Fix Ctrl+Ins pass-through in hotkey wrapper
This commit is contained in:
parent
3bde6cc3e8
commit
d2a8ecd7c1
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue