lockscreen: Support clearing the password with ctrl+backspace

This commit is contained in:
Aleix Pol 2021-10-16 17:21:09 +02:00 committed by Aleix Pol Gonzalez
parent 21f28c6ae8
commit 04e1cc1d58

View file

@ -83,6 +83,12 @@ Rectangle {
passwordBar.keyPress(event.text);
}
}
if (event.modifiers & Qt.ControlModifier) {
if (event.key === Qt.Key_Backspace) {
passwordBar.clear();
}
}
}
RectangularGlow {