angular-cn/modules/angular2/test
David-Emmanuel Divernois 8fa1539bac feat(keyEvents): support for <div (keyup.enter)="callback()">
This commit adds a plugin for the event manager, to allow a key name to
be appended to the event name (for keyup and keydown events), so that
the callback is only called for that key.

Here are some examples:
 (keydown.shift.enter)
 (keyup.space)
 (keydown.control.shift.a)
 (keyup.f1)

Key names mostly follow the DOM Level 3 event key values:
http://www.w3.org/TR/DOM-Level-3-Events-key/#key-value-tables

There are some limitations to be worked on (cf details
in https://github.com/angular/angular/pull/1136) but for now, this
implementation is reliable for the following keys (by "reliable" I mean
compatible with Chrome and Firefox and not depending on the keyboard
layout):
- alt, control, shift, meta (those keys can be combined with other keys)
- tab, enter, backspace, pause, scrolllock, capslock, numlock
- insert, delete, home, end, pageup, pagedown
- arrowup, arrowdown, arrowleft, arrowright
- latin letters (a-z), function keys (f1-f12)
- numbers on the numeric keypad (but those keys are not correctly simulated
by Chromedriver)

There is a sample to play with in examples/src/key_events/.

close #523
close #1136
2015-04-10 13:29:27 +02:00
..
change_detection refactor(change_detection): removed directive and binding mementos 2015-04-09 18:56:19 -07:00
core feat(view): generalized loading of dynamic components 2015-04-09 22:15:42 -07:00
di fix(tests): fixed a broken test 2015-03-26 07:46:26 -07:00
directives refactor(render): use render layer fully 2015-04-08 20:51:31 -07:00
dom refactor: update Dart package dependencies 2015-03-25 15:54:12 -07:00
facade feat(facade): added support for observables 2015-03-24 13:45:39 -07:00
forms refactor(render): use render layer fully 2015-04-08 20:51:31 -07:00
mock reafactor(XHR): rename XHRMock to MockXHR for consistency 2015-04-06 10:30:16 +02:00
reflection chore(packaging): update import for the new file structure 2015-02-05 15:47:12 -08:00
render/dom feat(keyEvents): support for <div (keyup.enter)="callback()"> 2015-04-10 13:29:27 +02:00
services refactor(render): use render layer fully 2015-04-08 20:51:31 -07:00
test_lib chore: upgrade guinness to remove a workaround in testlib 2015-03-13 18:19:10 -07:00
transform refactor(dart/transform): Minor renames 2015-04-03 13:16:24 -07:00