Close the quick switcher on Ctrl+K

pull/1684/head
Loren Burkholder 10 months ago
parent 961cb403f7
commit 74cd74d0f8
No known key found for this signature in database
GPG Key ID: AB62CB312CEC2BBC
  1. 12
      resources/qml/QuickSwitcher.qml

@ -32,6 +32,18 @@ Popup {
roomTextInput.forceActiveFocus(); 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 { Column {
anchors.fill: parent anchors.fill: parent
spacing: 1 spacing: 1

Loading…
Cancel
Save