mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Add haptic feedback for caps lock"
This commit is contained in:
commit
beac24226b
@ -649,7 +649,7 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
|
||||
}
|
||||
|
||||
public boolean isVibrateAndSoundFeedbackRequired() {
|
||||
return mKeyboardView == null || !mKeyboardView.isInSlidingKeyInput();
|
||||
return mKeyboardView != null && !mKeyboardView.isInSlidingKeyInput();
|
||||
}
|
||||
|
||||
private int getPointerCount() {
|
||||
|
@ -1259,6 +1259,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||
break;
|
||||
case Keyboard.CODE_CAPSLOCK:
|
||||
switcher.toggleCapsLock();
|
||||
vibrate();
|
||||
break;
|
||||
case Keyboard.CODE_SHORTCUT:
|
||||
mSubtypeSwitcher.switchToShortcutIME();
|
||||
|
Loading…
x
Reference in New Issue
Block a user