summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--resources/qml/QuickSwitcher.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/resources/qml/QuickSwitcher.qml b/resources/qml/QuickSwitcher.qml
index 10b9bf25..590971c7 100644
--- a/resources/qml/QuickSwitcher.qml
+++ b/resources/qml/QuickSwitcher.qml
@@ -32,6 +32,18 @@ Popup {
roomTextInput.forceActiveFocus();
}
+ Shortcut {
+ id: closeShortcut
+
+ sequence: "Ctrl+K"
+ onActivated: {
+ // It seems that QML takes a second or so to clean up destroyed shortcuts, so instead we'll just disable this shortcut
+ // so it doesn't prevent the quick switcher from opening again
+ closeShortcut.enabled = false;
+ quickSwitcher.close();
+ }
+ }
+
Column {
anchors.fill: parent
spacing: 1