mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-21 09:31:32 -08:00
Recognize {PGDN} Auto-Type placeholder
The {PGDN} placeholder is documented but only pgup/pgdown are registered
in g_placeholderToKey, so {PGDN} fails to resolve and aborts the rest of
the Auto-Type sequence.
Add pgdn as an alias for Qt::Key_PageDown, mirroring the existing
ins/insert and del/delete aliases (lookup already lowercases the
placeholder). Also assert {PGDN} in the syntax-check test.
Fixes #13379
Signed-off-by: Arpit Jain <[email protected]>
This commit is contained in:
1 parent
003e7af49c
commit
ed0dc92fff
2 files changed
+3
No files matched your search
@@ -80,6 +80,7 @@ namespace
|
||||
{"end", Qt::Key_End},
|
||||
{"pgup", Qt::Key_PageUp},
|
||||
{"pgdown", Qt::Key_PageDown},
|
||||
{"pgdn", Qt::Key_PageDown},
|
||||
{"backspace", Qt::Key_Backspace},
|
||||
{"bs", Qt::Key_Backspace},
|
||||
{"bksp", Qt::Key_Backspace},
|
||||
|
||||
@@ -350,6 +350,8 @@ void TestAutoType::testAutoTypeSyntaxChecks()
|
||||
|
||||
QVERIFY2(AutoType::verifyAutoTypeSyntax("{NUMPAD1 3}", entry, error), error.toLatin1());
|
||||
|
||||
QVERIFY2(AutoType::verifyAutoTypeSyntax("{PGDN}", entry, error), error.toLatin1());
|
||||
|
||||
QVERIFY2(AutoType::verifyAutoTypeSyntax("{S:SPECIALTOKEN}", entry, error), error.toLatin1());
|
||||
QVERIFY2(AutoType::verifyAutoTypeSyntax("{S:SPECIAL TOKEN}", entry, error), error.toLatin1());
|
||||
QVERIFY2(AutoType::verifyAutoTypeSyntax("{S:SPECIAL_TOKEN}", entry, error), error.toLatin1());
|
||||
|
||||
Reference in new issue
Block a user