diff options
Diffstat (limited to '_windows/ahk/capslock.ahk')
| -rw-r--r-- | _windows/ahk/capslock.ahk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/_windows/ahk/capslock.ahk b/_windows/ahk/capslock.ahk index 723dc43..34a7379 100644 --- a/_windows/ahk/capslock.ahk +++ b/_windows/ahk/capslock.ahk @@ -10,6 +10,7 @@ GroupAdd("Browser", "ahk_exe msedge.exe") GroupAdd("Browser", "ahk_exe firefox.exe") CapsLockState := false +ShiftLockState := false HarpoonLastWindowIndex := 0 HarpoonRun(winTitle) { @@ -36,6 +37,22 @@ HarpoonRun(winTitle) { global CapsLockState := not CapsLockState SetCapsLockState CapsLockState } +Enter::{ + global ShiftLockState := not ShiftLockState + if ShiftLockState { + SendInput "{LShift Down}" + } else { + SendInput "{LShift Up}" + } +} ++Enter::{ + global ShiftLockState := not ShiftLockState + if ShiftLockState { + SendInput "{LShift Down}" + } else { + SendInput "{LShift Up}" + } +} ; vim motion h::Left |
