diff options
Diffstat (limited to 'modules/launcher')
| -rw-r--r-- | modules/launcher/Content.qml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/launcher/Content.qml b/modules/launcher/Content.qml index 4aafc3f..d60991f 100644 --- a/modules/launcher/Content.qml +++ b/modules/launcher/Content.qml @@ -131,7 +131,13 @@ Item { } } - // TODO: key press grab focus + close on esc anywhere + onVisibleChanged: { + if (visible) + forceActiveFocus(); + else + text = ""; + } + Keys.onEscapePressed: root.launcher.launcherVisible = false } |