Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Add missing next and previous find-in-page button handlers #351

Merged

Conversation

alistairjcbrown
Copy link
Member

@alistairjcbrown alistairjcbrown commented Nov 25, 2021

Task/Issue URL:
Tech Design URL:
CC: @brindy

Description:
Previous and next buttons for find-in-page aren't working after #331 -- adding in the handlers referenced in the storyboard

Before After
find-in-page-buttons-before find-in-page-buttons-after

Steps to test this PR:
There's three ways to trigger next/previous for find-in-page -- confirm they all work as expected:

Enter / Shift+Enter

  1. Go to https://cheese.com/ and search for "cheese"
  2. With the find-in-page input focused...
    • Press the Enter key to move to the next match
    • press the Shift+Enter keys to move to the previous match

Next / Previous buttons

  1. Go to https://cheese.com/ and search for "cheese"
  2. Using the buttons to the right of the find-in-page input...
    • Click the down chevron to move to the next match
    • Click the up chevron to move to the previous match

Cmd+G / Shift+Cmd+G keyboard shortcupts

  1. Go to https://cheese.com/ and search for "cheese"
  2. With the find-in-page input blurred...
    • Press the Cmd+G keys to move to the next match
    • press the Shift+Cmd+G keys to move to the previous match

Testing checklist:

  • Test with Release configuration

Internal references:

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

@brindy brindy self-assigned this Nov 25, 2021
Copy link
Contributor

@brindy brindy left a comment

Choose a reason for hiding this comment

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

🤦 LGTM!

@brindy brindy assigned alistairjcbrown and unassigned brindy Nov 25, 2021
@alistairjcbrown alistairjcbrown merged commit c5a3a77 into develop Nov 25, 2021
@alistairjcbrown alistairjcbrown deleted the abrown/bugfix-add-missing-find-in-page-handlers branch November 25, 2021 15:37
@brindy brindy mentioned this pull request Nov 25, 2021
1 task
samsymons added a commit that referenced this pull request Nov 26, 2021
* develop:
  Address Bar visual tweaks (#310)
  Bump find-in-page to latest version (#352)
  Bump privacy dashboard to latest version (#349)
  fix popover message bug (#348)
  Add missing next and previous find-in-page button handlers (#351)
  add asserts to check that atb and install date are nil before being set (#350)
  copy private email address (#344)
  Reset tracker info on page change (#335)
  remove history menu and re-home other items (#343)
samsymons added a commit that referenced this pull request Dec 6, 2021
# By Alistair Brown (9) and others
# Via GitHub
* develop: (36 commits)
  Partial tech debt cleanup (#345)
  Address Bar visual tweaks (#310)
  Bump find-in-page to latest version (#352)
  Bump privacy dashboard to latest version (#349)
  fix popover message bug (#348)
  Add missing next and previous find-in-page button handlers (#351)
  add asserts to check that atb and install date are nil before being set (#350)
  copy private email address (#344)
  Reset tracker info on page change (#335)
  remove history menu and re-home other items (#343)
  Update the credit card model + UI tweaks (#342)
  0.17.6
  Add Usage Pixel (#336)
  Bump find-in-page to latest version (#337)
  Forward delete collision with suffix resolved (#334)
  Avoid using a specific browser as the default. (#341)
  Closing animation duration changed to 0.15 (#333)
  Hiding the favicon view when favicon is nil (#326)
  export bookmarks (#339)
  Ensure ITP database is cleared (#328)
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants