aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-05-23 14:53:49 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-05-23 14:53:49 +0200
commitc68774a7052a45130a50f955d0f6eb64e3894530 (patch)
tree92d5fd32a4a63aae10612bfc5ffca7efec92d06b
parentdbda8b7a4b64d691700dd7f5b7dcdcff223e9481 (diff)
downloadahk-c68774a7052a45130a50f955d0f6eb64e3894530.tar.gz
scripts: Improve Show Desktop shortcut
-rw-r--r--scripts.ahk8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts.ahk b/scripts.ahk
index da39d5d..3e9c222 100644
--- a/scripts.ahk
+++ b/scripts.ahk
@@ -54,7 +54,13 @@ return
#Pause::Media_Next
#If !DisableHotkeys
-#d::#m
+#d::
+if (not WinActive("ahk_group Desktop")) ; see tt.programs.explorer.ahk
+{
+ SendInput, #m
+ WinActivate, ahk_group Desktop
+}
+return
#+d::#+m
#If