diff options
Diffstat (limited to 'modules/lock/Center.qml')
| -rw-r--r-- | modules/lock/Center.qml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/lock/Center.qml b/modules/lock/Center.qml index b288284..3df61a0 100644 --- a/modules/lock/Center.qml +++ b/modules/lock/Center.qml @@ -48,7 +48,7 @@ ColumnLayout { } Loader { - Layout.leftMargin: Appearance.spacing.normal + Layout.leftMargin: Appearance.spacing.small Layout.alignment: Qt.AlignVCenter asynchronous: true @@ -118,6 +118,9 @@ ColumnLayout { } Keys.onPressed: event => { + if (!root.lock.locked) + return; + if (event.key === Qt.Key_Enter || event.key === Qt.Key_Return) inputField.placeholder.animate = false; |