From e5c7eadccfe4dea5b377790b8240ecc7948fd4fa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= <john@ankarstrom.se>
Date: Wed, 14 Apr 2021 22:56:04 +0200
Subject: jump: Fix hotkey overlap

When #s is triggered, the Windows key is likely going to be held down
for the input to Input, but Input prevents Windows' built-in Windows-key
bindings from triggering. Unfortunately, Input doesn't prevent the
Windows-key bindings defined in the AutoHotkey script from triggering!

Thus the global DisableHotkeys variable.
---
 tt.jump.ahk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tt.jump.ahk b/tt.jump.ahk
index b551186..b5c0f5a 100644
--- a/tt.jump.ahk
+++ b/tt.jump.ahk
@@ -9,13 +9,19 @@ JumpPaths := { s: env("Sync")
 	, m: env("UserProfile") "\Music"
 	, p: env("UserProfile") "\Pictures" }
 
+DisableHotkeys := false
+
 ;; -> body
 
+#If !DisableHotkeys
 #e::OpenExplorer("::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")
+#If
 
 #s::
 ToolTip, ...
+DisableHotkeys := true
 Input, k, M C L1
+DisableHotkeys := false
 if (JumpPaths[k] != "")
 {
 	if (InStr(FileExist(JumpPaths[k]), "D"))
-- 
cgit v1.2.3