-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2023-12-15] [$500] Chat - The Emoji search field is focused when clicking on Modifier keys #30867
Comments
Triggered auto assignment to @dylanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~011a4c2fb2e41d1f1c |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @robertKozik ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The Emoji search field is focused when clicking on Modifier keys What is the root cause of that problem?We are currently focusing emoji picker's search input whenever a key is pressed, App/src/components/EmojiPicker/EmojiPickerMenu/index.js Lines 325 to 327 in aa30ef2
What changes do you think we should make in order to solve the problem?Only focus the search input if the user presses the keys which would add text to the input. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The Emoji search field is focused when clicking on Modifier keys What is the root cause of that problem?The conditions for autofocusing via keypress for emoji picker here and composer here are not aligned What changes do you think we should make in order to solve the problem?We need to add the missing rules from composer autofocus logic to the emoji picker autofocus logic For this specific issue, using this rule in here should be enough, but we should consider other rules as well to make it consistent and avoid similar bugs.
This should also be used:
Since many rules can be reused between the composer and the emoji picker (and any other input that requires autofocusing on key press), we can create an util What alternative solutions did you explore? (Optional)NA |
@robertKozik can we review these proposals today, please? |
won't it prevent focus for typing special characters? f.e |
Also preventing the Control key would break many things that are currently working when the input is not focused, like paste ( I think the best option would be not to focus the input if the user presses only the modifier keys (maybe also if (keyBoardEvent.metaKey || keyBoardEvent.key === 'Control' || keyBoardEvent.key === 'Shift' || keyBoardEvent.key === 'Alt') {
return;
}
// or
if (keyBoardEvent.metaKey || keyBoardEvent.key.length > 1) {
return;
} But this would also focus the input for browser action like Alternatively, we can manually check for keys like |
@robertKozik You're right, we can remove the Option key from the condition since Option key combined with another key will produce text, the rest like We can fix the issue you mentioned in the main composer as well since it's also happening there |
Thanks for the follow up, @dukenv0307! @robertKozik thoughts? |
@dylanexpensify, @robertKozik Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
1 similar comment
@dylanexpensify, @robertKozik Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Mind giving next steps here @robertKozik? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@dylanexpensify, @robertKozik 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
bump @robertKozik |
@robertKozik The PR is ready for review. |
bump @robertKozik! |
I see it got already merged @dylanexpensify |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.9-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-12-15. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
payment upcoming! 🤑 |
@marcaaron, @dylanexpensify, @robertKozik, @dukenv0307 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
|
paying out today! |
Payment summary:
Please apply! |
done! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.95.0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @daveSeife
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1698154419378969
Action Performed:
Expected Result:
The Emoji search field is not focused when clicking on Modifier keys
Actual Result:
The Emoji search field is focused when clicking on Modifier keys
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
t7keyboardFocus.Desktop.1.mp4
t7keyboardFocus.macChrome.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: