 Send, {Ctrl down}w{Ctrl up}
 return
 
+!q::
+Send, {Alt down}{F4}{Alt up}
+return
+
+!+]::
+Send, {Ctrl down}{Tab}{Ctrl up}
+return
+
+!+[::
+Send, {Ctrl down}{Shift down}{Tab}{Ctrl up}{Shift up}
+return
+
+Alt & Space::
+KeyWait Alt
+KeyWait Space
+Send, {LWin down}{LWin up}
+return
+
 CapsLock::LCtrl
-Capslock Up::
-SendInput, {LControl up}
+CapsLock Up::
+SendInput, {LCtrl up}
 If A_TimeSincePriorHotkey < 200
 {
   SendInput, {Escape}   


Enter::RCtrl
Enter Up::
SendInput, {RControl up}
If A_TimeSincePriorHotkey < 200
{
  SendInput, {Enter}   

SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

GroupAdd, ChomeShortcuts, ahk_exe chrome.exe
GroupAdd, TermShortcuts, ahk_exe WindowsTerminal.exe

#IfWinActive ahk_group ChomeShortcuts
!t::
Send, {Ctrl down}t{Ctrl up}
return
!f::
Send, {Ctrl down}f{Ctrl up}
return
#IfWinActive

#IfWinActive ahk_group TermShortcuts
!t::
Send, {Ctrl down}{Shift down}t{Ctrl up}{Shift up}
return
!c::
Send, {Ctrl down}{Shift down}c{Ctrl up}{Shift up}
return
!v::
Send, {Ctrl down}{Shift down}v{Ctrl up}{Shift up}
return
#IfWinActive

!c::
