Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 594865f

Browse files
authored
Always use low case for TLDs (#2940)
1 parent 5e63ca2 commit 594865f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/KeyboardWidget.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ private void handleLanguageChange(KeyboardInterface aKeyboard) {
751751
}
752752

753753
private void handleDomainChange(KeyboardSelectorView.Item aItem) {
754-
handleText(aItem.title);
754+
handleText(aItem.title, true);
755755

756756
disableShift(getSymbolsKeyboard());
757757
handleShift(false);
@@ -829,11 +829,15 @@ private void handleKey(int primaryCode, int[] keyCodes) {
829829
}
830830

831831
private void handleText(String aText) {
832+
handleText(aText, false);
833+
}
834+
835+
private void handleText(String aText, boolean skipCase) {
832836
if (mFocusedView == null || mInputConnection == null) {
833837
return;
834838
}
835839

836-
if (mKeyboardView.isShifted()) {
840+
if (mKeyboardView.isShifted() && !skipCase) {
837841
aText = aText.toUpperCase();
838842
}
839843

0 commit comments

Comments
 (0)