File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -548,10 +548,10 @@ <h3>What?</h3>
548548 < p > Bind an event to a particular keypress</ p >
549549 < p > < textarea ui-keypress ="{13:'keypressCallback($event)'} "> ui-keypress
550550
551- Hit [Enter] or [Alt]+[Space] and remember that this normally adds a new line if we don't $event.preventDefault() </ textarea > </ p >
551+ Hit [Enter]. The $event here is different from keypress, but fires earlier. </ textarea > </ p >
552552 < p > < textarea ui-keydown ="{'enter alt-space':'keypressCallback($event)'} "> ui-keydown
553553
554- Hit [Enter]. The $event here is different from keypress, but fires earlier. </ textarea > </ p >
554+ Hit [Enter] or [Alt]+[Space] and remember that this normally adds a new line if we don't $event.preventDefault() </ textarea > </ p >
555555 < p > < textarea ui-keyup ="{'enter':'keypressCallback($event)'} "> ui-keyup
556556
557557Hit [Enter]. Remember not to close the alert using [Enter] or it will refire keyup.</ textarea > </ p >
You can’t perform that action at this time.
0 commit comments