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> |