Bug 1821716 -

URL should leave 'focus' state when keyboard is dismissed
fenix/115.2.0
t-p-white 1 year ago committed by mergify[bot]
parent db15a56960
commit 507926d5ed

@ -279,6 +279,10 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler {
when (event?.action) {
MotionEvent.ACTION_DOWN, MotionEvent.ACTION_MOVE -> {
isPrivateButtonClicked = isTouchingPrivateButton(event.x, event.y)
// Immediately drop Search Bar focus when the touch is not on the private button.
if (!isPrivateButtonClicked) {
toolbarView.view.clearFocus()
}
}
MotionEvent.ACTION_UP -> {
if (!isTouchingPrivateButton(

Loading…
Cancel
Save