diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/KeyboardWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/KeyboardWidget.java index 391d669e7..d238f565a 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/KeyboardWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/KeyboardWidget.java @@ -746,7 +746,10 @@ private void handleShift(boolean isShifted) { if (mKeyboardView.getKeyboard() != getSymbolsKeyboard()) { if (isShifted || mIsCapsLock) { - mKeyboardView.setKeyboard(mCurrentKeyboard.getAlphabeticCapKeyboard()); + if (mCurrentKeyboard.getAlphabeticCapKeyboard() != null) { + mKeyboardView.setKeyboard(mCurrentKeyboard.getAlphabeticCapKeyboard()); + } + } else { mKeyboardView.setKeyboard(mCurrentKeyboard.getAlphabeticKeyboard()); } @@ -1046,7 +1049,7 @@ private void handleText(String aText, boolean skipCase) { postInputCommand(() -> connection.commitText(text, 1)); } - if (!mIsCapsLock && mCurrentKeyboard.getAlphabeticCapKeyboard() == null) { + if (!mIsCapsLock) { handleShift(false); }