is there a way to add universal shortcuts for input / text fields in OS X and/or chrome itself such as Control + U to delete everything to the left of a line, Control + W to delete the left word etc. or cursor positioning like Control + a to move to beginning of a line?
Mac – Common shell / editor shortcuts for Mac OS X
keyboardmac
Related Question
- MacOS – Mimic Xcode’s camelCase selection keyboard shortcuts in OS X
- MacOS – How to disable Command + Left keyboard shortcut in Yosemite
- MacOS – In iTerm, how can I change alt+delete to ignore slashes
- MacOS – How to configure the Emacs-like keyboard shortcuts in OS X
- Missing text editing keyboard shortcut like windows while coding
- MacOS – Missing keyboard Shortcuts
- Big Sur keyboard shortcut to select text
Best Answer
This is definitely possible, see https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/EventOverview/TextDefaultsBindings/TextDefaultsBindings.html for a good discussion of text system key bindings.
To accomplish what you're after save the following to
~/Library/KeyBindings/DefaultKeyBinding.dict
: