Skip to content

Instantly share code, notes, and snippets.

@yyamasak
Created April 10, 2018 09:12
Show Gist options
  • Save yyamasak/ad0bb7c98fc147945815f7005f9f1076 to your computer and use it in GitHub Desktop.
Save yyamasak/ad0bb7c98fc147945815f7005f9f1076 to your computer and use it in GitHub Desktop.
Map short ESC to IME ON/OFF and long ESC to Escape
$Esc::
KeyWait, Esc, T0.1
if ErrorLevel
send,{Esc}
else
send,!{vkC0}
keywait, Esc
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment