I want to learn emac keybindings, but I have a bad habit of using arrow keys. Is there a way to disable the arrow keys temporarily (through software)?
MacOS – How to disable a key completely
keyboardmacos
Related Question
- MacOS – How to disable search suggestions for Safari 6
- MacOS – How to unminimize windows from an application using a key combination
- MacOS – Remapping “Command + Arrow Key” to jump through the words of CamelCase expressions
- How to disable default alt-left / alt-right keyboard shortcuts for Numbers.app
- Is it possible to disable single function keys
- MacOS – How to temporarily disable the MBP’s keyboard
- MacOS – can I disable F12, Ctrl-Left Arrow, Ctrl-Right Arrow
Best Answer
You can disable them in most text views by saving a property list like this as ~/Library/KeyBindings/DefaultKeyBinding.dict:
If you use bash, you can disable arrow keys (without other modifier keys) by adding this to
~/.inputrc
:If you want to disable them completely, you can add this to KeyRemap4MacBook's private.xml:
This would only disable them in TextMate, TextEdit, Terminal, and iTerm, and only affect some key combinations: