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,8 +83,14 @@ Rectangle {
passwordBar.keyPress(event.text);
}
}
if (event.modifiers & Qt.ControlModifier) {
if (event.key === Qt.Key_Backspace) {
passwordBar.clear();
}
}
}
RectangularGlow {
anchors.topMargin: 1
anchors.fill: passwordBar