diff --git a/win/win.ahk b/win/win.ahk index 3c8c9f5..fc0ac60 100644 --- a/win/win.ahk +++ b/win/win.ahk @@ -118,8 +118,14 @@ MoveCursorWin(toRight) { } -#f:: WinMaximize, A -#+f:: WinRestore, A +#f:: + WinGet, isMax, MinMax, A + if (isMax) { + WinRestore, A + } else { + WinMaximize, A + } + return #,:: #Left #.:: #Right #+u:: #+Left