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

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: Merge with trunk. 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
« no previous file with comments | « ui/keyboard/resources/api_adapter.js ('k') | ui/keyboard/resources/elements/kb-key-base.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ffa2e0b331d8ee6b2bf8cbc30044eb7b5aa80e24..b8ec5cb01a32d7ee2eb8a16c42b649186b62e154 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>
« no previous file with comments | « ui/keyboard/resources/api_adapter.js ('k') | ui/keyboard/resources/elements/kb-key-base.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698