Index: third_party/google_input_tools/src/chrome/os/inputview/elements/content/characterkey.js |
diff --git a/third_party/google_input_tools/src/chrome/os/inputview/elements/content/characterkey.js b/third_party/google_input_tools/src/chrome/os/inputview/elements/content/characterkey.js |
index abf21b7af4cfb37e9fdfaa52508d799ad9962f51..650d4348b835a4c22c98d79219e88c2cfa748951 100644 |
--- a/third_party/google_input_tools/src/chrome/os/inputview/elements/content/characterkey.js |
+++ b/third_party/google_input_tools/src/chrome/os/inputview/elements/content/characterkey.js |
@@ -16,9 +16,9 @@ goog.provide('i18n.input.chrome.inputview.elements.content.CharacterKey'); |
goog.require('goog.a11y.aria'); |
goog.require('goog.a11y.aria.State'); |
goog.require('goog.array'); |
+goog.require('i18n.input.chrome.ElementType'); |
goog.require('i18n.input.chrome.inputview.StateType'); |
goog.require('i18n.input.chrome.inputview.SwipeDirection'); |
-goog.require('i18n.input.chrome.inputview.elements.ElementType'); |
goog.require('i18n.input.chrome.inputview.elements.content.Character'); |
goog.require('i18n.input.chrome.inputview.elements.content.CharacterModel'); |
goog.require('i18n.input.chrome.inputview.elements.content.SoftKey'); |
@@ -59,7 +59,7 @@ i18n.input.chrome.inputview.elements.content.CharacterKey = function(id, |
keyCode, characters, isLetterKey, hasAltGrCharacterInTheKeyset, |
alwaysRenderAltGrCharacter, stateManager, isRTL, |
enableShiftRendering, opt_eventTarget) { |
- goog.base(this, id, i18n.input.chrome.inputview.elements.ElementType. |
+ goog.base(this, id, i18n.input.chrome.ElementType. |
CHARACTER_KEY, opt_eventTarget); |
/** |
@@ -213,6 +213,7 @@ CharacterKey.prototype.getAltCharacters = |
goog.array.insert(altCharacters, ch); |
} |
} |
+ goog.array.removeDuplicates(altCharacters); |
return altCharacters; |
}; |