I figured I'd register since I just figured this out on my own without any previous AHK experience, so I thought I'd share it with everyone! I know it's minor, but some might find the Chrome addition useful
Close Active Window by pressing: Esc. Except when in Chrome, Close Active Tab.
Code: Select all
; Close Active Window by pressing: Esc. Except when in Chrome, Close Active Tab.
#IfWinActive
Esc::
SendInput {Alt Down}{F4}{Alt Up}
Return
#IfWinActive ahk_class Chrome_WidgetWin_1
Esc::Send ^w