Table of Contents

What's keycode ?

Requirements

Install

History

License
Donation

Kurita Tetsuro
scriptfactory@mac.com

Script factory

keycode

Wnat's keycode ?

Each key of a keyboard have a keycode which is an identifier as a hardware. Inputted character by pressed the key is determiend by the keyboard layout in software layer.

“keycode” is a command line tool to reverse search for keycodes from characters.

“keycode” prints keycodes according to given characters. When argument is not given, a table of keycodes and characters is printed.

keycode [-hvn] [chars]

  • -n : print keycodes without appending newline characters
  • -v : print version infomation
  • -h : print help

Requirements

  • Mac OS X 10.7 or later
    • Developed and tested on macOS 10.14.6.

Install

Copy “keycode” into the folder included in the enviroment variable “PATH” (e.g. /usr/local/bin).

In other ways, you can add the location “keycode” is copyed in into the enviroment variable “PATH”.

History

  • 1.0 -- 2021-04-07
    • First release