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
g_LastCtrlKeyDownTime := 0 | |
g_AbortSendEsc := false | |
g_ControlRepeatDetected := false | |
*CapsLock:: | |
if (g_ControlRepeatDetected) | |
{ | |
return | |
} |
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
;;; resize-frame.el --- A minor mode to resize frames easily. -*- lexical-binding: t; -*- | |
;; Copyright (C) 2014 kuanyui | |
;; Author: kuanyui <[email protected]> | |
;; Keywords: frames, tools, convenience | |
;; License: WTFPL 1.0 | |
;;; Commentary: |
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 |