Chromium Code Reviews| Index: ui/keyboard/resources/elements/kb-key-sequence.html |
| diff --git a/ui/keyboard/resources/elements/kb-key-sequence.html b/ui/keyboard/resources/elements/kb-key-sequence.html |
| index ad01003b2a1abf4d7e7dea5c516b5c48370e63b7..f247152151bbbdfc2aa26743f4aeb5520b7b855f 100644 |
| --- a/ui/keyboard/resources/elements/kb-key-sequence.html |
| +++ b/ui/keyboard/resources/elements/kb-key-sequence.html |
| @@ -4,7 +4,7 @@ |
| -- found in the LICENSE file. |
| --> |
| -<polymer-element name="kb-key-sequence" attributes="keys hintTexts keyCodes"> |
| +<polymer-element name="kb-key-sequence" attributes="keys hintTexts keyCodes invert"> |
|
bshe
2013/10/09 16:07:50
nit: this seems over 80 characters
rsadam
2013/10/09 19:04:46
Done.
|
| <template> |
| <style> |
| @host { |
| @@ -41,8 +41,15 @@ |
| key.accents = newKeys[i]; |
| if (newHintTexts) |
| key.hintText = newHintTexts[i]; |
| + var keyCodeIndex = keyCodes[i]; |
| + |
| + if (this.invert) { |
| + key.invert = true; |
| + key.char = newKeys[i]; |
| + keyCodeIndex = key.hintText; |
| + } |
| var state = this.$.keyCodeMetadata.GetKeyCodeAndModifiers( |
| - keyCodes[i]); |
| + keyCodeIndex); |
| if (state) { |
| key.keyCode = state.keyCode; |
| key.shiftModifier = state.shiftModifier; |