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

Commit

Permalink
Request focus when clicking URL bar icon buttons. Fixes #2301. (#2312)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and bluemarvin committed Nov 19, 2019
1 parent 18bb273 commit c17bd07
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ private void initialize(Context aContext) {
mURLWebsiteColor = typedValue.data;

// Bookmarks
mBinding.bookmarkButton.setOnClickListener(v -> handleBookmarkClick());
mBinding.bookmarkButton.setOnClickListener(v -> {
v.requestFocusFromTouch();
handleBookmarkClick();
});

// Initialize bindings
mBinding.setIsLibraryVisible(false);
Expand Down Expand Up @@ -479,6 +482,7 @@ public void setClickable(boolean clickable) {
if (mAudio != null) {
mAudio.playSound(AudioEngine.Sound.CLICK);
}
view.requestFocusFromTouch();

if (mDelegate != null) {
mDelegate.onVoiceSearchClicked();
Expand All @@ -500,6 +504,7 @@ public void setClickable(boolean clickable) {
mAudio.playSound(AudioEngine.Sound.CLICK);
}

view.requestFocusFromTouch();
if (mDelegate != null) {
mDelegate.onPopUpButtonClicked();
}
Expand Down

0 comments on commit c17bd07

Please sign in to comment.