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

Unified Diff: third_party/google_input_tools/src/chrome/os/inputview/elements/content/modifierkey.js

Issue 701603002: Update to google-input-tools version 1.0.5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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: 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 7a973aeae7b46f21f43cce3457336e4da154b94c..1ebb24bee39dd52a50652b57b7606b5e80a8fad3 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
@@ -117,9 +117,10 @@ ModifierKey.prototype.createDom = function() {
ModifierKey.prototype.update = function() {
var isStateEnabled = this.stateManager_.hasState(this.toState);
var isSticky = this.stateManager_.isSticky(this.toState);
+ var isFinalSticky = this.stateManager_.isFinalSticky(this.toState);
this.setHighlighted(isStateEnabled);
if (this.dotIcon_) {
- if (isStateEnabled && isSticky) {
+ if (isStateEnabled && isSticky && isFinalSticky) {
goog.dom.classlist.add(this.dotIcon_,
i18n.input.chrome.inputview.Css.CAPSLOCK_DOT_HIGHLIGHT);
} else {

Powered by Google App Engine
This is Rietveld 408576698