Does the Atom Editor keymap support function keys? Like F5
atom-editor, github
Solution
Yes, Atom supports function keys. The names of the keys are case-sensitive and the name of F5 is `f5`, note the lowercase "f". The following should work:
'atom-workspace atom-text-editor':
'f5': 'runner:run'
Also, note that you may want to replace `atom-workspace atom-text-editor` with just `atom-workspace`, unless you don't want the key to execute the command when you're on the Tree View, a Markdown Preview or any other view that isn't an editor.
Problem
I setup `keymap.cson` with this entry. In the palette, I can see `F5` is associated with this command but pressing `F5` does not trigger it ` '.workspace .editor': 'F5': 'runner:run' `