From 594865f128d42811685d2d6b56dab88f78bdc8d7 Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Wed, 11 Mar 2020 18:22:37 +0100 Subject: [PATCH] Always use low case for TLDs (#2940) --- .../org/mozilla/vrbrowser/ui/widgets/KeyboardWidget.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 1a07c6b4f..8334edd60 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 @@ -751,7 +751,7 @@ private void handleLanguageChange(KeyboardInterface aKeyboard) { } private void handleDomainChange(KeyboardSelectorView.Item aItem) { - handleText(aItem.title); + handleText(aItem.title, true); disableShift(getSymbolsKeyboard()); handleShift(false); @@ -829,11 +829,15 @@ private void handleKey(int primaryCode, int[] keyCodes) { } private void handleText(String aText) { + handleText(aText, false); + } + + private void handleText(String aText, boolean skipCase) { if (mFocusedView == null || mInputConnection == null) { return; } - if (mKeyboardView.isShifted()) { + if (mKeyboardView.isShifted() && !skipCase) { aText = aText.toUpperCase(); }