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

Unified Diff: ui/keyboard/resources/elements/kb-key.html

Issue 20145004: Switch from text insertion to key press and release events on the virtual k… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code cleanup. Created 7 years, 3 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
Index: ui/keyboard/resources/elements/kb-key.html
diff --git a/ui/keyboard/resources/elements/kb-key.html b/ui/keyboard/resources/elements/kb-key.html
index c37d70716668052b0a37e5374ec7dec09abb1017..936dabb4f5c9b46c909fbacbbacdf4576d33926e 100644
--- a/ui/keyboard/resources/elements/kb-key.html
+++ b/ui/keyboard/resources/elements/kb-key.html
@@ -39,7 +39,18 @@
* Keys with a high weighting are wider than normal keys.
* @type {number}
*/
- weight: 1
+ weight: 1,
+
+ /**
+ * Returns a subset of the key attributes.
+ * @return {Object} Mapping of attributes for the key element.
+ */
+ PopulateDetails: function() {
+ var details = this.super();
+ details.keyCode = this.keyCode;
+ details.shiftModifier = this.shiftModifier;
+ return details;
+ },
});
</script>
</polymer-element>
@@ -60,7 +71,7 @@
}
this.fire('enable-dbl', detail);
this.fire('enable-sel');
- }
+ },
});
</script>
</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698