snappier keybind
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user