mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
Revert "fix:ctrl +c triggered unintentionally"
This reverts commit a7cdb9dd72
.
This commit is contained in:
parent
a7cdb9dd72
commit
371fb66bdf
|
@ -158,7 +158,7 @@ bool HotkeyWrapper::checkState(quint32 vk, quint32 mod)
|
||||||
|
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
|
|
||||||
if( hs.key2 != 0 /*|| ( mod == MOD_CONTROL && ( vk == VK_INSERT || vk == 'c' || vk == 'C' ) )*/ )
|
if( hs.key2 != 0 || ( mod == MOD_CONTROL && ( vk == VK_INSERT || vk == 'c' || vk == 'C' ) ) )
|
||||||
{
|
{
|
||||||
// Pass-through first part of compound hotkey or clipdoard copy command
|
// Pass-through first part of compound hotkey or clipdoard copy command
|
||||||
|
|
||||||
|
@ -258,7 +258,7 @@ bool HotkeyWrapper::checkState(quint32 vk, quint32 mod)
|
||||||
// Note that we only grab the clipboard key only if
|
// Note that we only grab the clipboard key only if
|
||||||
// the sequence didn't begin with it
|
// the sequence didn't begin with it
|
||||||
|
|
||||||
if ( ( isCopyToClipboardKey( hs.key, hs.modifier ) &&
|
if ( ( isCopyToClipboardKey( hs.key, hs.modifier ) ||
|
||||||
!isCopyToClipboardKey( hs.key2, hs.modifier ) ) &&
|
!isCopyToClipboardKey( hs.key2, hs.modifier ) ) &&
|
||||||
!isKeyGrabbed( hs.key2, hs.modifier ) )
|
!isKeyGrabbed( hs.key2, hs.modifier ) )
|
||||||
keyToUngrab = grabKey( hs.key2, hs.modifier );
|
keyToUngrab = grabKey( hs.key2, hs.modifier );
|
||||||
|
|
Loading…
Reference in a new issue