Commit 15c3c748 authored by Sindre Sorhus's avatar Sindre Sorhus

Merge pull request #323 from MathieuLorber/issue-320

Dart app: ENTER keyCode for fixing issue #320
parents 0103a8e4 94bbf152
......@@ -40,7 +40,7 @@ class TodoApp {
InputElement newTodoElement = query('#new-todo');
newTodoElement.on.keyPress.add((KeyboardEvent e) {
if (e.keyIdentifier == KeyName.ENTER) {
if (e.keyCode == KeyCode.ENTER) {
var title = newTodoElement.value.trim();
if (title != '') {
addTodo(new Todo(UUID.createUuid(), title));
......
......@@ -61,7 +61,7 @@ class TodoWidget {
editElement.on
..keyPress.add((KeyboardEvent e) {
if (e.keyIdentifier == KeyName.ENTER) {
if (e.keyCode == KeyCode.ENTER) {
doneEditing(e);
}
})
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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