Skip to content

Commit

Permalink
Reset shifted keyboard status when keyboard is changed (#1227)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and philip-lamb committed May 16, 2019
1 parent 0ccdaf8 commit baa8144
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -240,6 +240,7 @@ private void resetKeyboardLayout() {
} else {
mKeyboardView.setKeyboard(mCurrentKeyboard.getAlphabeticKeyboard());
}
handleShift(false);
updateCandidates();
}

Expand Down Expand Up @@ -507,7 +508,6 @@ private void handleShift(boolean isShifted) {
if (mIsCapsLock) {
key.icon = mCapsLockOnIcon;
key.pressed = true;

} else {
key.icon = shifted ? mShiftOnIcon : mShiftOffIcon;
key.pressed = false;
Expand Down Expand Up @@ -588,6 +588,7 @@ private void handleLanguageChange(KeyboardInterface aKeyboard) {

SettingsStore.getInstance(getContext()).setSelectedKeyboard(aKeyboard.getLocale());
mKeyboardView.setKeyboard(mCurrentKeyboard.getAlphabeticKeyboard());
handleShift(false);
hideOverlays();
updateCandidates();
}
Expand Down

0 comments on commit baa8144

Please sign in to comment.