Bug: 5086698
Change-Id: Iaa3082649344722bd643c49c9d151df754d6e337
This commit is contained in:
Tadashi G. Takaoka 2011-07-27 15:35:05 -07:00
parent 60ccbe16ee
commit 0a5345c7b6

View file

@ -674,6 +674,7 @@ public class PointerTracker {
private void startLongPressTimer(int keyIndex) { private void startLongPressTimer(int keyIndex) {
Key key = getKey(keyIndex); Key key = getKey(keyIndex);
if (key == null) return;
if (key.mCode == Keyboard.CODE_SHIFT) { if (key.mCode == Keyboard.CODE_SHIFT) {
if (sLongPressShiftKeyTimeout > 0) { if (sLongPressShiftKeyTimeout > 0) {
mTimerProxy.startLongPressTimer(sLongPressShiftKeyTimeout, keyIndex, this); mTimerProxy.startLongPressTimer(sLongPressShiftKeyTimeout, keyIndex, this);