Commit c0762487 authored by Arthur Verschaeve's avatar Arthur Verschaeve

Enyo-backbone: auto focus on `#new-item`

Ref #1029
parent a2259093
/*jshint strict:false */ /*jshint strict:false */
/*global enyo:false, ENTER_KEY:false */ /*global enyo:false, ENTER_KEY:false */
// Header section for adding a new task. // Header section for adding a new task.
enyo.kind({ enyo.kind({
...@@ -18,6 +18,9 @@ enyo.kind({ ...@@ -18,6 +18,9 @@ enyo.kind({
kind: 'enyo.Input', kind: 'enyo.Input',
id: 'new-todo', id: 'new-todo',
placeholder: 'What needs to be done?', placeholder: 'What needs to be done?',
attributes: {
autofocus: 'autofocus'
},
handlers: { handlers: {
onkeypress: 'saveNew' onkeypress: 'saveNew'
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment