mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Remember shift locked state when switching between Main keyboard and Symbols
Bug: 5553660 Change-Id: Icb15a9f8a58243bd113c2d4897fee623ac48b66d
This commit is contained in:
parent
1e39565bb4
commit
cb83b300e7
@ -656,11 +656,16 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
|
|||||||
return mKeyboardView == null ? 0 : mKeyboardView.getPointerCount();
|
return mKeyboardView == null ? 0 : mKeyboardView.getPointerCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean mPrevMainKeyboardWasShiftLocked;
|
||||||
|
|
||||||
private void toggleKeyboardMode() {
|
private void toggleKeyboardMode() {
|
||||||
if (mCurrentId.equals(mMainKeyboardId)) {
|
if (mCurrentId.equals(mMainKeyboardId)) {
|
||||||
|
mPrevMainKeyboardWasShiftLocked = isShiftLocked();
|
||||||
setKeyboard(getKeyboard(mSymbolsKeyboardId));
|
setKeyboard(getKeyboard(mSymbolsKeyboardId));
|
||||||
} else {
|
} else {
|
||||||
setKeyboard(getKeyboard(mMainKeyboardId));
|
setKeyboard(getKeyboard(mMainKeyboardId));
|
||||||
|
setShiftLocked(mPrevMainKeyboardWasShiftLocked);
|
||||||
|
mPrevMainKeyboardWasShiftLocked = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user