mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
65605409b05753dc1b9e5d4e5d7afb89f4b46d2c
Now if a keypress event bubbles to an element with bindings for
multiple matching selectors, the most specific selector is chosen. This
allows us to override a keybinding by using a more specific selector.
For example, say we have an editor instance inside of the file-finder
widget, so that the user can use all their normal bindings when they
type the name of the file. Except when they hit <esc> we want to close
the file finder, not do whatever they normally have it bound to. Now we
can just say:
```
.file-finder .editor {
<esc>: close-file-finder
}
```
And we're assured that our binding will take precedence.
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%