Commit 1a60087b authored by Nate Graham's avatar Nate Graham 🔩

[lock/login screens] Focus password field after virtual keyboard appears

Without this, the virtual keyboard appears and takes focus, which
doesn't make sense:the password field needs to retain focus or else
the keystrokes you type using the virtual keyboard get eaten.

BUG: 430209
FIXED-IN: 5.21
parent fcbfbcbf
......@@ -328,6 +328,9 @@ PlasmaCore.ColorScope {
onKeyboardActiveChanged: {
if (keyboardActive) {
state = "visible";
// Otherwise the password field loses focus and virtual keyboard
// keystrokes get eaten
mainBlock.mainPasswordBox.forceActiveFocus();
} else {
state = "hidden";
}
......
......@@ -258,6 +258,9 @@ PlasmaCore.ColorScope {
onKeyboardActiveChanged: {
if (keyboardActive) {
state = "visible"
// Otherwise the password field loses focus and virtual keyboard
// keystrokes get eaten
userListComponent.mainPasswordBox.forceActiveFocus();
} else {
state = "hidden";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment