mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
Close the quick switcher on Ctrl+K
This commit is contained in:
parent
961cb403f7
commit
74cd74d0f8
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue