Swapped hbs comment style
This commit is contained in:
parent
34080e47ec
commit
f829bab424
1 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ ember install ember-modifier
|
||||||
Below is an example for how to track the focus state of a DOM element.
|
Below is an example for how to track the focus state of a DOM element.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
// my-component.hbs
|
{{!-- my-component.hbs --}}
|
||||||
<button
|
<button
|
||||||
{{on 'focus' this.handleFocus}}
|
{{on 'focus' this.handleFocus}}
|
||||||
{{on 'blur' this.handleBlur}}
|
{{on 'blur' this.handleBlur}}
|
||||||
|
@ -140,7 +140,7 @@ module('Integration | Modifier | key-down', function(hooks) {
|
||||||
A simple example of a focusable element listening for the Enter key to be pressed.
|
A simple example of a focusable element listening for the Enter key to be pressed.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
// my-component.hbs
|
{{!-- my-component.hbs --}}
|
||||||
<button
|
<button
|
||||||
{{key-down this.handleEnter key='Enter'}}
|
{{key-down this.handleEnter key='Enter'}}
|
||||||
My Button
|
My Button
|
||||||
|
@ -166,7 +166,7 @@ _Note, often times it may be better to listen for keyup rather than keydown for
|
||||||
Sometimes you simply want to stop the default behavior of a key, such as scrolling down with an arrow key.
|
Sometimes you simply want to stop the default behavior of a key, such as scrolling down with an arrow key.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
// my-component.hbs
|
{{!-- my-component.hbs --}}
|
||||||
<dialog
|
<dialog
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
role='dialog'
|
role='dialog'
|
||||||
|
|
Loading…
Add table
Reference in a new issue