diff options
author | John Ankarström <john@ankarstrom.se> | 2021-01-31 14:04:23 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-01-31 14:04:23 +0100 |
commit | 05a998c59034bfe9e1655913dd71a74c41c5f208 (patch) | |
tree | e20c160b9d4dad44ce112dc5092163ebabb3b504 | |
parent | 93d6c8672fc3b5f8b088bef5700e3dc3c6697a53 (diff) | |
download | ahk-05a998c59034bfe9e1655913dd71a74c41c5f208.tar.gz |
programs: Fix Drawterm Alt-Tab handling
-rw-r--r-- | tt.programs.ahk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tt.programs.ahk b/tt.programs.ahk index 2352dd8..52f1426 100644 --- a/tt.programs.ahk +++ b/tt.programs.ahk @@ -143,11 +143,15 @@ return <^>!9::SendInput, {ASC 93} <^>!+::SendInput, {ASC 92} -LAlt & Tab:: +#If WinActive("ahk_class 9pmgraphics") and !AltTabActive + +!Tab:: SendInput, {LAlt} SendInput, {LAlt Down}{Tab} +AltTabActive := 1 KeyWait, LAlt SendInput, {LAlt Up} +AltTabActive := 0 return #IfWinActive |