0
0
mirror of https://github.com/keepassxreboot/keepassxc.git synced 2024-09-19 20:02:18 +02:00

Fix Auto-Type modifiers on Windows

Also add documentation on modifiers.

* Fix #7626
This commit is contained in:
Jonathan White 2022-03-23 21:44:50 -04:00
parent dd5217734c
commit c5d25ac371
3 changed files with 22 additions and 1 deletions

View File

@ -68,6 +68,18 @@ image::autotype_entry_sequences.png[]
|{PICKCHARS} |Pick specific password characters from a dialog
|{MODE=VIRTUAL} |(Experimental) Use virtual key presses on Windows, useful for virtual machines
|===
+
[grid=rows, frame=none, width=90%]
|===
|Modifier |Description
|+ |SHIFT
|^ |CTRL
|% |ALT
|# |WIN/CMD
|===
TIP: Use modifiers to hold down special keys before typing the next character. For example, to type *CTRL+SHIFT+D* use: `^+d`. This is useful if you need to activate certain actions in a program or on your desktop.
=== Performing Global Auto-Type
The global Auto-Type keyboard shortcut is used when you have focus on the window you want to type into. To make use of this feature, you must have previously configured an Auto-Type hotkey.

View File

@ -84,6 +84,15 @@ Examples: +
|{PICKCHARS} |Pick specific password characters from a dialog
|===
[grid=rows, frame=none, width=90%]
|===
|Modifier |Description
|+ |SHIFT
|^ |CTRL
|% |ALT
|# |WIN/CMD
|===
*Text Conversions:*
`{T-CONV:/<PLACEHOLDER>/<METHOD>/}` +

View File

@ -297,7 +297,7 @@ AutoTypeAction::Result AutoTypeExecutorWin::execType(const AutoTypeKey* action)
m_platform->setKeyState(action->key, true);
m_platform->setKeyState(action->key, false);
} else {
if (mode == Mode::VIRTUAL) {
if (mode == Mode::VIRTUAL || action->modifiers != Qt::NoModifier) {
m_platform->sendCharVirtual(action->character);
} else {
m_platform->sendChar(action->character);