commit 61ece244205725e788a05db5648d80962ccf583e parent ea4ef08150fb29a9e4d7f1b7580438862dad1fda Author: sarah541 <sarahkhan1107@hotmail.com> Date: Wed, 1 Oct 2025 18:23:30 +0000 Bug 1985754 - Dismiss edit mode on taps outside suggestions r=android-reviewers,petru Differential Revision: https://phabricator.services.mozilla.com/D266874 Diffstat:
| M | mobile/android/fenix/app/src/main/java/org/mozilla/fenix/search/awesomebar/AwesomeBarComposable.kt | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/search/awesomebar/AwesomeBarComposable.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/search/awesomebar/AwesomeBarComposable.kt @@ -187,7 +187,11 @@ class AwesomeBarComposable( .pointerInput(WindowInsets.isImeVisible) { detectTapGestures( // Hide the keyboard for any touches in the empty area of the awesomebar - onPress = { view.hideKeyboard() }, + onPress = { + focusManager.clearFocus() + view.hideKeyboard() + appStore.dispatch(SearchEnded) + }, ) }, ) {