Skip to content

Instantly share code, notes, and snippets.

@verityj
Created June 14, 2023 18:42
Show Gist options
  • Save verityj/8b6831fb16b473a8b87a976bf7e59b26 to your computer and use it in GitHub Desktop.
Save verityj/8b6831fb16b473a8b87a976bf7e59b26 to your computer and use it in GitHub Desktop.
/* ~/Library/KeyBindings/DefaultKeyBinding.dict
* Created by VerityJ
*/
{
"$\U007F" = "deleteForward:";
/* 'shift - delete' as forward delete - works in Xcode, not in Terminal */
"\UF708" = "deleteForward:";
/* F5 as forward delete */
/* Xcode: by default has a conflict, edit key bindings to remove default F5 and manually add to forward delete */
/* Terminal: works only after deleting F5 from Settings - Profiles - Basic - Keyboard */
}
/*
Key Modifiers
^ : control
$ : shift
~ : option (alt)
@ : command (⌘)
# : numeric keys (e.g. #0 is number 0)
Non-Printable Key Codes
http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/CORPCHAR.TXT
\t tab
\n enter
\r return
\U001b escape
\U007f delete button (backwards)
\Uf700 up arrow
\Uf701 down arrow
\Uf702 left arrow
\Uf703 right arrow
\Uf704 F1
\Uf705 F2
\Uf706 F3
\Uf707 F4
\Uf708 F5
\Uf709 F6
\Uf70a F7
\Uf70b F8
\Uf70c F9
\Uf70d F10
\Uf70e F11
\Uf70f F12
\Uf710 F13
\Uf711 F14
\Uf712 F15
\Uf713 F16
\Uf714 F17
\Uf715 F18
\Uf716 F19
\Uf717 F20
\Uf728 forward delete
\Uf729 home
\Uf72b end
\Uf72c page up
\Uf72d page down
\Uf739 clear
\U0008 backspace?
\U0009 tab
\U001B escape
\U000A enter
\UF727 insert
\UF72E print screen
\UF72F scroll lock
\UF732 break
\UF731 SysReq
\UF746 help
\UF730 pause
\UF735 menu
*/
/* Eject symbol is not an eject key and does not work: */
/* "\UF804" = "deleteForward:"; */
/* eject symbol? ⏏ as forward delete - does not work */
/* from http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/CORPCHAR.TXT */
/* "Keyboard-0x8C" */
/* "0x8C 0x23CF # EJECT SYMBOL # Unicode 4.0 and later, Mac OS X only" */
/* from https://unicode.org/Public/MAPPINGS/VENDORS/APPLE/KEYBOARD.TXT */
/* "\U23CF" = "deleteForward:"; */
/* eject symbol? ⏏ as forward delete - does not work */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment