8000 Change from "done" to "go" button. (#229) · WindowxDeveloper/Android@8102160 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8102160

Browse files
authored
Change from "done" to "go" button. (duckduckgo#229)
8000 IME specific; don't expect all keyboards to honor it. Google's own GBoard displays it as an -> arrow now.
1 parent 0e9252a commit 8102160

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/com/duckduckgo/app/browser/BrowserTabFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ class BrowserTabFragment : Fragment(), FindListener {
490490
}
491491

492492
omnibarTextInput.setOnEditorActionListener(TextView.OnEditorActionListener { _, actionId, keyEvent ->
493-
if (actionId == EditorInfo.IME_ACTION_DONE || keyEvent?.keyCode == KeyEvent.KEYCODE_ENTER) {
493+
if (actionId == EditorInfo.IME_ACTION_GO || keyEvent?.keyCode == KeyEvent.KEYCODE_ENTER) {
494494
userEnteredQuery(omnibarTextInput.text.toString())
495495
return@OnEditorActionListener true
496496
}

app/src/main/res/layout/fragment_browser_tab.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
android:elevation="4dp"
9191
android:fontFamily="sans-serif-medium"
9292
android:hint="@string/omnibarInputHint"
93-
android:imeOptions="flagNoExtractUi|actionDone|flagNoPersonalizedLearning"
93+
android:imeOptions="flagNoExtractUi|actionGo|flagNoPersonalizedLearning"
9494
android:inputType="textUri|textNoSuggestions"
9595
android:maxLines="1"
9696
android:paddingBottom="4dp"

0 commit comments

Comments
 (0)
0