| Index: third_party/google_input_tools/src/chrome/os/inputview/elements/content/modifierkey.js
|
| diff --git a/third_party/google_input_tools/src/chrome/os/inputview/elements/content/modifierkey.js b/third_party/google_input_tools/src/chrome/os/inputview/elements/content/modifierkey.js
|
| index 1ebb24bee39dd52a50652b57b7606b5e80a8fad3..5fde3d83028c24f9bc6aa7cb3ca55b6c2df11b4d 100644
|
| --- a/third_party/google_input_tools/src/chrome/os/inputview/elements/content/modifierkey.js
|
| +++ b/third_party/google_input_tools/src/chrome/os/inputview/elements/content/modifierkey.js
|
| @@ -24,6 +24,7 @@ goog.require('i18n.input.chrome.inputview.elements.content.FunctionalKey');
|
|
|
| goog.scope(function() {
|
| var StateType = i18n.input.chrome.inputview.StateType;
|
| +var Css = i18n.input.chrome.inputview.Css;
|
|
|
|
|
|
|
| @@ -104,8 +105,7 @@ ModifierKey.prototype.createDom = function() {
|
| if (this.toState == i18n.input.chrome.inputview.StateType.CAPSLOCK ||
|
| this.supportSticky) {
|
| var dom = this.getDomHelper();
|
| - this.dotIcon_ = dom.createDom(goog.dom.TagName.DIV,
|
| - i18n.input.chrome.inputview.Css.CAPSLOCK_DOT);
|
| + this.dotIcon_ = dom.createDom(goog.dom.TagName.DIV, Css.CAPSLOCK_DOT);
|
| dom.appendChild(this.tableCell, this.dotIcon_);
|
| }
|
|
|
| @@ -121,13 +121,16 @@ ModifierKey.prototype.update = function() {
|
| this.setHighlighted(isStateEnabled);
|
| if (this.dotIcon_) {
|
| if (isStateEnabled && isSticky && isFinalSticky) {
|
| - goog.dom.classlist.add(this.dotIcon_,
|
| - i18n.input.chrome.inputview.Css.CAPSLOCK_DOT_HIGHLIGHT);
|
| + goog.dom.classlist.add(this.dotIcon_, Css.CAPSLOCK_DOT_HIGHLIGHT);
|
| } else {
|
| - goog.dom.classlist.remove(this.dotIcon_,
|
| - i18n.input.chrome.inputview.Css.CAPSLOCK_DOT_HIGHLIGHT);
|
| + goog.dom.classlist.remove(this.dotIcon_, Css.CAPSLOCK_DOT_HIGHLIGHT);
|
| }
|
| }
|
| + if (isStateEnabled && isSticky && isFinalSticky) {
|
| + goog.dom.classlist.add(this.bgElem, Css.FUNCITONAL_KEY_STICKY);
|
| + } else {
|
| + goog.dom.classlist.remove(this.bgElem, Css.FUNCITONAL_KEY_STICKY);
|
| + }
|
| };
|
|
|
|
|
|
|