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

Unified Diff: third_party/google_input_tools/src/chrome/os/inputview/util.js

Issue 1046933003: Updates google-input-tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months 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/util.js
diff --git a/third_party/google_input_tools/src/chrome/os/inputview/util.js b/third_party/google_input_tools/src/chrome/os/inputview/util.js
index 009f54e2e5e47cfee408b36a7c8b04ba1e80c6cc..84b04d83af72efd6abe5a57baa8ffeaca9970d7a 100644
--- a/third_party/google_input_tools/src/chrome/os/inputview/util.js
+++ b/third_party/google_input_tools/src/chrome/os/inputview/util.js
@@ -282,6 +282,10 @@ util.getVisibleCharacter = function(invisibleCharacter) {
* @return {boolean} True if this is a letter key.
*/
util.isLetterKey = function(characters) {
+ if (characters[0] == characters[1]) {
+ return false;
+ }
+
if (characters[1] == util.toUpper(
characters[0]) || characters[1] == util.
toLower(characters[0])) {

Powered by Google App Engine
This is Rietveld 408576698