mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Change windows clearfield key sequence to avoid keyboard layout errors
This commit is contained in:
@@ -189,6 +189,8 @@ DWORD AutoTypePlatformWin::qtToNativeKeyCode(Qt::Key key)
|
|||||||
case Qt::Key_Enter:
|
case Qt::Key_Enter:
|
||||||
case Qt::Key_Return:
|
case Qt::Key_Return:
|
||||||
return VK_RETURN; // 0x0D
|
return VK_RETURN; // 0x0D
|
||||||
|
case Qt::Key_Shift:
|
||||||
|
return VK_SHIFT; // 0x10
|
||||||
case Qt::Key_Control:
|
case Qt::Key_Control:
|
||||||
return VK_CONTROL; // 0x11
|
return VK_CONTROL; // 0x11
|
||||||
case Qt::Key_Pause:
|
case Qt::Key_Pause:
|
||||||
@@ -534,9 +536,17 @@ void AutoTypeExecutorWin::execClearField(AutoTypeClearField* action = nullptr)
|
|||||||
Q_UNUSED(action);
|
Q_UNUSED(action);
|
||||||
|
|
||||||
m_platform->sendKey(Qt::Key_Control, true);
|
m_platform->sendKey(Qt::Key_Control, true);
|
||||||
m_platform->sendKey(Qt::Key_A, true);
|
m_platform->sendKey(Qt::Key_Home, true);
|
||||||
m_platform->sendKey(Qt::Key_A, false);
|
m_platform->sendKey(Qt::Key_Home, false);
|
||||||
m_platform->sendKey(Qt::Key_Control, false);
|
m_platform->sendKey(Qt::Key_Control, false);
|
||||||
|
::Sleep(25);
|
||||||
|
m_platform->sendKey(Qt::Key_Control, true);
|
||||||
|
m_platform->sendKey(Qt::Key_Shift, true);
|
||||||
|
m_platform->sendKey(Qt::Key_End, true);
|
||||||
|
m_platform->sendKey(Qt::Key_End, false);
|
||||||
|
m_platform->sendKey(Qt::Key_Shift, false);
|
||||||
|
m_platform->sendKey(Qt::Key_Control, false);
|
||||||
|
::Sleep(25);
|
||||||
m_platform->sendKey(Qt::Key_Backspace, true);
|
m_platform->sendKey(Qt::Key_Backspace, true);
|
||||||
m_platform->sendKey(Qt::Key_Backspace, false);
|
m_platform->sendKey(Qt::Key_Backspace, false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user