This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires AutoHotkey v2 | |
; Install the keyboard hook to capture the real key state of the keyboard | |
InstallKeybdHook(true) | |
; Disable the CapsLock key | |
SetCapsLockState("alwaysoff") | |
; Send esc key when Capslock is pressed as default | |
g_DoNotAbortSendEsc := true | |
$*Capslock::{ ; Capture CapsLock key press | |
global g_DoNotAbortSendEsc ; use global variable g_DoNotAbortSendEsc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#| | |
Kanata | |
CapsLock tap to Esc | |
CapsLock hold to Ctrl | |
|# | |
(defcfg | |
process-unmapped-keys no | |
) |