From 05a998c59034bfe9e1655913dd71a74c41c5f208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 31 Jan 2021 14:04:23 +0100 Subject: programs: Fix Drawterm Alt-Tab handling --- tt.programs.ahk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3