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

Commit

Permalink
Always use low case for TLDs (#2940)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored Mar 11, 2020
1 parent 5e63ca2 commit 594865f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 594865f

Please sign in to comment.