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

Remove 'error' sound when closing Find in Page UI with Esc key #573

Merged
merged 1 commit into from
May 5, 2022

Conversation

ayoy
Copy link
Collaborator

@ayoy ayoy commented May 5, 2022

Task/Issue URL: https://app.asana.com/0/1177771139624306/1202193534645253/f

Description:
Mark Esc key press handled when it causes Find in Page UI to close. Also avoid overriding isHandled flag
by address bar not being in focus (when Esc caused Find in Page to close).

Steps to test this PR:

  1. Open a URL tab, type cmd+f to bring up Find in Page UI
  2. Press Esc and verify that no sound is played
  3. Invoke Find in Page again, move focus away, press Esc – verify that no sound is played
  4. Focus the address bar, press Esc – verify that no sound is played
  5. Press Esc when Find in Page is hidden and address bar is not focused – verify that no sound is played

Testing checklist:

  • Test with Release configuration
  • Test proper deallocation of tabs
  • Make sure committed submodule changes are desired

Internal references:

Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM

@Bunn Bunn self-assigned this May 5, 2022
if let addressBarVC = navigationBarViewController.addressBarViewController {
isHandled = isHandled || addressBarVC.escapeKeyDown()
}
return isHandled
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good readability 👍

Copy link
Collaborator

@Bunn Bunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM

@Bunn Bunn assigned ayoy and unassigned Bunn May 5, 2022
@ayoy ayoy merged commit 5b6e15c into develop May 5, 2022
@ayoy ayoy deleted the dominik/find-in-page-beep branch May 5, 2022 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants