snappier keybind

This commit is contained in:
Zacharias-Brohn
2025-11-10 13:41:49 +01:00
parent 3ca79b8513
commit 8e6cca78cb
+10
View File
@@ -40,9 +40,19 @@ Scope {
name: "toggle-launcher" name: "toggle-launcher"
onPressed: { onPressed: {
if ( !launcherWindow.visible ) { if ( !launcherWindow.visible ) {
if ( !openAnim.running ) {
openAnim.start(); openAnim.start();
}
} else if ( launcherWindow.visible ) { } else if ( launcherWindow.visible ) {
if ( !closeAnim.running ) {
closeAnim.start(); closeAnim.start();
} else if ( openAnim.running ) {
openAnim.stop();
closeAnim.start();
} else if ( closeAnim.running ) {
closeAnim.stop();
openAnim.start();
}
} }
focusGrab.active = true; focusGrab.active = true;
searchInput.forceActiveFocus(); searchInput.forceActiveFocus();