Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(594)

Unified Diff: tools/dom/src/KeyboardEventController.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/src/Isolates.dart ('k') | tools/dom/src/Serialization.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/KeyboardEventController.dart
diff --git a/tools/dom/src/KeyboardEventController.dart b/tools/dom/src/KeyboardEventController.dart
index f949b32724ae690dd41c525c48f044bf356e28f3..1e0f97a82c6e8e173783b5827383eef99b6d86ec 100644
--- a/tools/dom/src/KeyboardEventController.dart
+++ b/tools/dom/src/KeyboardEventController.dart
@@ -150,7 +150,7 @@ class KeyboardEventController {
/** Determine if caps lock is one of the currently depressed keys. */
bool get _capsLockOn =>
- _keyDownList.some((var element) => element.keyCode == KeyCode.CAPS_LOCK);
+ _keyDownList.any((var element) => element.keyCode == KeyCode.CAPS_LOCK);
/**
* Given the previously recorded keydown key codes, see if we can determine
@@ -379,7 +379,7 @@ class KeyboardEventController {
// keyCode/which for non printable keys.
e._shadowKeyCode = _keyIdentifier[e._shadowKeyIdentifier];
}
- e._shadowAltKey = _keyDownList.some((var element) => element.altKey);
+ e._shadowAltKey = _keyDownList.any((var element) => element.altKey);
_dispatch(e);
}
@@ -393,7 +393,8 @@ class KeyboardEventController {
}
}
if (toRemove != null) {
- _keyDownList = _keyDownList.filter((element) => element != toRemove);
+ _keyDownList =
+ _keyDownList.where((element) => element != toRemove).toList();
} else if (_keyDownList.length > 0) {
// This happens when we've reached some international keyboard case we
// haven't accounted for or we haven't correctly eliminated all browser
« no previous file with comments | « tools/dom/src/Isolates.dart ('k') | tools/dom/src/Serialization.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698