From 04e1cc1d58139ef4e213971d6c6f0fb36953dd4d Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Sat, 16 Oct 2021 17:21:09 +0200 Subject: [PATCH] lockscreen: Support clearing the password with ctrl+backspace --- look-and-feel/contents/lockscreen/Keypad.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/look-and-feel/contents/lockscreen/Keypad.qml b/look-and-feel/contents/lockscreen/Keypad.qml index 62db391e..d0336aae 100644 --- a/look-and-feel/contents/lockscreen/Keypad.qml +++ b/look-and-feel/contents/lockscreen/Keypad.qml @@ -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