Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
94bbf152
Commit
94bbf152
authored
Nov 14, 2012
by
Mathieu Lorber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix : ENTER keyCode for FF & Safari
parent
0103a8e4
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4668 additions
and
4641 deletions
+4668
-4641
labs/architecture-examples/dart/web/dart/TodoApp.dart
labs/architecture-examples/dart/web/dart/TodoApp.dart
+1
-1
labs/architecture-examples/dart/web/dart/TodoWidget.dart
labs/architecture-examples/dart/web/dart/TodoWidget.dart
+1
-1
labs/architecture-examples/dart/web/dart/app.dart.js
labs/architecture-examples/dart/web/dart/app.dart.js
+4663
-4636
labs/architecture-examples/dart/web/dart/app.dart.js.map
labs/architecture-examples/dart/web/dart/app.dart.js.map
+3
-3
No files found.
labs/architecture-examples/dart/web/dart/TodoApp.dart
View file @
94bbf152
...
...
@@ -40,7 +40,7 @@ class TodoApp {
InputElement
newTodoElement
=
query
(
'#new-todo'
);
newTodoElement
.
on
.
keyPress
.
add
((
KeyboardEvent
e
)
{
if
(
e
.
key
Identifier
==
KeyNam
e
.
ENTER
)
{
if
(
e
.
key
Code
==
KeyCod
e
.
ENTER
)
{
var
title
=
newTodoElement
.
value
.
trim
();
if
(
title
!=
''
)
{
addTodo
(
new
Todo
(
UUID
.
createUuid
(),
title
));
...
...
labs/architecture-examples/dart/web/dart/TodoWidget.dart
View file @
94bbf152
...
...
@@ -61,7 +61,7 @@ class TodoWidget {
editElement
.
on
..
keyPress
.
add
((
KeyboardEvent
e
)
{
if
(
e
.
key
Identifier
==
KeyNam
e
.
ENTER
)
{
if
(
e
.
key
Code
==
KeyCod
e
.
ENTER
)
{
doneEditing
(
e
);
}
})
...
...
labs/architecture-examples/dart/web/dart/app.dart.js
View file @
94bbf152
This diff is collapsed.
Click to expand it.
labs/architecture-examples/dart/web/dart/app.dart.js.map
View file @
94bbf152
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment