mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-26 09:21:21 -05:00
use QT key instead of native ones
This commit is contained in:
parent
36250f5180
commit
ea1ffe7fb5
@ -473,6 +473,8 @@ KeySym AutoTypePlatformX11::keyToKeySym(Qt::Key key)
|
|||||||
return XK_Print;
|
return XK_Print;
|
||||||
case Qt::Key_ScrollLock:
|
case Qt::Key_ScrollLock:
|
||||||
return XK_Scroll_Lock;
|
return XK_Scroll_Lock;
|
||||||
|
case Qt::Key_Control:
|
||||||
|
return XK_Control_L;
|
||||||
default:
|
default:
|
||||||
if (key >= Qt::Key_F1 && key <= Qt::Key_F16) {
|
if (key >= Qt::Key_F1 && key <= Qt::Key_F16) {
|
||||||
return XK_F1 + (key - Qt::Key_F1);
|
return XK_F1 + (key - Qt::Key_F1);
|
||||||
@ -853,10 +855,10 @@ void AutoTypeExecutorX11::execClearField(AutoTypeClearField* action = nullptr)
|
|||||||
{
|
{
|
||||||
Q_UNUSED(action);
|
Q_UNUSED(action);
|
||||||
|
|
||||||
m_platform->SendKey(XK_Control_L, true);
|
m_platform->SendKey(m_platform->keyToKeySym(Qt::Key_Control), true);
|
||||||
m_platform->SendKeyPressedEvent(XK_a);
|
m_platform->SendKeyPressedEvent(m_platform->charToKeySym('a'));
|
||||||
m_platform->SendKey(XK_Control_L, false);
|
m_platform->SendKey(m_platform->keyToKeySym(Qt::Key_Control), false);
|
||||||
m_platform->SendKeyPressedEvent(XK_Delete);
|
m_platform->SendKeyPressedEvent(m_platform->keyToKeySym(Qt::Key_Delete));
|
||||||
|
|
||||||
timespec ts;
|
timespec ts;
|
||||||
ts.tv_sec = 0;
|
ts.tv_sec = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user