mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
9d911d29c52edd5e79db205e845055a3016afbe2
I couldn't find a way to test this really. It's some interaction between focusout and focus events. When the hidden input has focus and then we call focus on the editor, the handling of the focusout event away from input was trigerring a call to focus on the editor, which didn't seem to trigger the handler that shifted it back to the hidden input. Here I only focus the editor if something *outside* of the editor was de-focused. So focusing the editor when the input is focused is ignored, and focus is gracefully returned back to the input.
Atom — Futuristic Text Editing
Informative Links
Ace
- https://github.com/ajaxorg/ace/wiki/Creating-or-Extending-an-Edit-Mode
- https://github.com/ajaxorg/ace/blob/master/lib/ace/selection.js
- https://github.com/ajaxorg/ace/blob/master/lib/ace/commands/default_commands.js
- https://github.com/ajaxorg/ace/blob/master/lib/ace/document.js
commonjs
- http://ringojs.org/api/master/
- http://wiki.commonjs.org/wiki/Filesystem/A
- https://github.com/280north/narwhal
JSCocoa
- http://parmanoir.com/Taming_JavascriptCore_within_and_without_WebView
- https://github.com/parmanoir/jscocoa/
- http://code.google.com/p/jscocoa/
Cloud9
Description
Languages
JavaScript
88.3%
Less
8.7%
CoffeeScript
2.8%
Shell
0.1%