mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
ca9e26882a123db3db7fe39ac558b5a09ad62922
Move refresh handling to keyDown: method on AtomController. Eliminate custom handleInputEvent method. NSApplication-sendEvent calls performKeyEquivalents on keydown events. Here I override sendEvent for keydown and forward the event to its window. This allows the web view to receive Command-H etc without key equivalents interfering. If the web view short-circuits the event, then the key equivalent will not be invoked. But it can let the event pass through and it ends up invoking the key equivalent anyway via a mechanism I don't fully understand. Apparently Cocoa tries to execute key equivalents after the web view finishes with the event? But it works great.
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%