From 2ba1bcccddbd3be173e72bc49de074339d95b46a Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Mon, 12 Dec 2011 12:56:30 +0900 Subject: [PATCH] Remove unused Keyboard.CODE_CANCEL Change-Id: Ic2eab17e525901a1cf7096ebe7d24ae78624ed2e --- java/src/com/android/inputmethod/keyboard/Keyboard.java | 1 - java/src/com/android/inputmethod/latin/LatinIME.java | 5 ----- 2 files changed, 6 deletions(-) diff --git a/java/src/com/android/inputmethod/keyboard/Keyboard.java b/java/src/com/android/inputmethod/keyboard/Keyboard.java index 2bc140ed5..f234507d5 100644 --- a/java/src/com/android/inputmethod/keyboard/Keyboard.java +++ b/java/src/com/android/inputmethod/keyboard/Keyboard.java @@ -71,7 +71,6 @@ public class Keyboard { public static final int CODE_SHIFT = -1; public static final int CODE_SWITCH_ALPHA_SYMBOL = -2; public static final int CODE_CAPSLOCK = -3; - public static final int CODE_CANCEL = -4; public static final int CODE_DELETE = -5; public static final int CODE_SETTINGS = -6; public static final int CODE_SHORTCUT = -7; diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 5d075b175..54989bb9a 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1334,11 +1334,6 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar switcher.toggleAlphabetAndSymbols(); } break; - case Keyboard.CODE_CANCEL: - if (!isShowingOptionDialog()) { - handleClose(); - } - break; case Keyboard.CODE_SETTINGS: onSettingsKeyPressed(); break;