am beac2422
: Merge "Add haptic feedback for caps lock"
* commit 'beac24226b6a6303ff1821cf0ad57f146bb0e3d7': Add haptic feedback for caps lock
This commit is contained in:
commit
158f1cce3d
2 changed files with 2 additions and 1 deletions
|
@ -649,7 +649,7 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isVibrateAndSoundFeedbackRequired() {
|
public boolean isVibrateAndSoundFeedbackRequired() {
|
||||||
return mKeyboardView == null || !mKeyboardView.isInSlidingKeyInput();
|
return mKeyboardView != null && !mKeyboardView.isInSlidingKeyInput();
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getPointerCount() {
|
private int getPointerCount() {
|
||||||
|
|
|
@ -1259,6 +1259,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||||
break;
|
break;
|
||||||
case Keyboard.CODE_CAPSLOCK:
|
case Keyboard.CODE_CAPSLOCK:
|
||||||
switcher.toggleCapsLock();
|
switcher.toggleCapsLock();
|
||||||
|
vibrate();
|
||||||
break;
|
break;
|
||||||
case Keyboard.CODE_SHORTCUT:
|
case Keyboard.CODE_SHORTCUT:
|
||||||
mSubtypeSwitcher.switchToShortcutIME();
|
mSubtypeSwitcher.switchToShortcutIME();
|
||||||
|
|
Loading…
Reference in a new issue