Commit 94bbf152 authored by Mathieu Lorber's avatar Mathieu Lorber

Fix : ENTER keyCode for FF & Safari

parent 0103a8e4
......@@ -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