What are the options for (keyup) in Angular2?

AlikElzin-kilaka picture AlikElzin-kilaka · Aug 22, 2015 · Viewed 175.8k times · Source

The following works great when the enter key is released. What other options are available for the keyup in addition to keyup.enter?

<input #inputstring (keyup.enter)="doSomething(inputstring.value)"/>

Answer

Angular University picture Angular University · Aug 22, 2015

These are the options currently documented in the tests: ctrl, shift, enter and escape. These are some valid examples of key bindings:

keydown.control.shift.enter
keydown.control.esc

You can track this here while no official docs exist, but they should be out soon.