mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-05 01:15:33 -05:00
parent
f3b0fe46b4
commit
e85425050b
@ -102,6 +102,9 @@ void AutoTypePlatformWin::sendChar(const QChar& ch, bool isKeyDown)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (HIBYTE(vkey) & 0x6) {
|
||||||
|
sendKey(Qt::Key_AltGr, true);
|
||||||
|
} else {
|
||||||
if (HIBYTE(vkey) & 0x1) {
|
if (HIBYTE(vkey) & 0x1) {
|
||||||
sendKey(Qt::Key_Shift, true);
|
sendKey(Qt::Key_Shift, true);
|
||||||
}
|
}
|
||||||
@ -111,6 +114,7 @@ void AutoTypePlatformWin::sendChar(const QChar& ch, bool isKeyDown)
|
|||||||
if (HIBYTE(vkey) & 0x4) {
|
if (HIBYTE(vkey) & 0x4) {
|
||||||
sendKey(Qt::Key_Alt, true);
|
sendKey(Qt::Key_Alt, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DWORD flags = KEYEVENTF_SCANCODE;
|
DWORD flags = KEYEVENTF_SCANCODE;
|
||||||
if (!isKeyDown) {
|
if (!isKeyDown) {
|
||||||
@ -127,6 +131,9 @@ void AutoTypePlatformWin::sendChar(const QChar& ch, bool isKeyDown)
|
|||||||
|
|
||||||
::SendInput(1, &in, sizeof(INPUT));
|
::SendInput(1, &in, sizeof(INPUT));
|
||||||
|
|
||||||
|
if (HIBYTE(vkey) & 0x6) {
|
||||||
|
sendKey(Qt::Key_AltGr, false);
|
||||||
|
} else {
|
||||||
if (HIBYTE(vkey) & 0x1) {
|
if (HIBYTE(vkey) & 0x1) {
|
||||||
sendKey(Qt::Key_Shift, false);
|
sendKey(Qt::Key_Shift, false);
|
||||||
}
|
}
|
||||||
@ -137,6 +144,7 @@ void AutoTypePlatformWin::sendChar(const QChar& ch, bool isKeyDown)
|
|||||||
sendKey(Qt::Key_Alt, false);
|
sendKey(Qt::Key_Alt, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Send virtual key code to foreground window
|
// Send virtual key code to foreground window
|
||||||
|
@ -267,6 +267,8 @@ WORD WinUtils::qtToNativeKeyCode(Qt::Key key)
|
|||||||
return VK_HELP; // 0x2F
|
return VK_HELP; // 0x2F
|
||||||
case Qt::Key_Meta:
|
case Qt::Key_Meta:
|
||||||
return VK_LWIN; // 0x5B
|
return VK_LWIN; // 0x5B
|
||||||
|
case Qt::Key_AltGr:
|
||||||
|
return VK_RMENU; // 0xA5
|
||||||
|
|
||||||
case Qt::Key_F1:
|
case Qt::Key_F1:
|
||||||
return VK_F1; // 0x70
|
return VK_F1; // 0x70
|
||||||
|
Loading…
x
Reference in New Issue
Block a user