-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix can't use right and left arrow key when a mention suggestion is shown #38383
Fix can't use right and left arrow key when a mention suggestion is shown #38383
Conversation
Here is an additional video to show that the arrow navigation still works fine on the emoji picker. Screen.Recording.2024-03-15.at.18.11.41.1.mov |
I'll review it soon. |
Reviewer Checklist
Screenshots/VideosAndroid: Native0-android.mp4Android: mWeb Chrome0-mobile-chrome.mp4iOS: Native0-ios.mp4iOS: mWeb Safari0-mobile-safari.mp4MacOS: Chrome / Safari0-web.mp4MacOS: Desktop0-desktop.mp4 |
@bernhardoj Friendly bump. Looks good and tested well, just a minor comment. |
I don't see any comment |
@@ -44,10 +44,9 @@ export default function useArrowKeyFocusManager({ | |||
isActive, | |||
itemsPerRow, | |||
disableCyclicTraversal = false, | |||
disableHorizontalKeys = false, | |||
allowHorizontalArrowKeys = false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the comment of @param
tag as well.
Sorry my bad, forgot to submit the comment. |
Updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
👋 per this issue, could you please update the highlighting to match emojis? Screen.Recording.2024-03-27.at.11.47.04.PM.mp4 |
Details
The arrow key is captured by a keyboard shortcut. This PR disables it by default and only enable it when needed.
Fixed Issues
$ #38076
PROPOSAL: #38076 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-03-15.at.18.10.07.mov
Android: mWeb Chrome
Screen.Recording.2024-03-15.at.18.11.13.mov
iOS: Native
Screen.Recording.2024-03-15.at.18.09.42.mov
iOS: mWeb Safari
Screen.Recording.2024-03-15.at.18.09.04.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-15.at.18.07.42.mov
MacOS: Desktop
Screen.Recording.2024-03-15.at.18.08.20.mov