Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #2713 Always use low case for TLDs #2940

Merged
merged 1 commit into from
Mar 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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