-
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-06-15] [$1000] The cursor does not move to the next line after pressing Shift+Enter while using the mention feature. #19624
Comments
Triggered auto assignment to @twisterdotcom ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
if (((!e.shiftKey && e.key === CONST.KEYBOARD_SHORTCUTS.ENTER.shortcutKey) || e.key === CONST.KEYBOARD_SHORTCUTS.TAB.shortcutKey) && suggestionsExist) {
e.preventDefault();
if (this.state.suggestedEmojis.length > 0) {
this.insertSelectedEmoji(this.state.highlightedEmojiIndex);
}
if (this.state.suggestedMentions.length > 0) {
this.insertSelectedMention(this.state.highlightedMentionIndex);
}
return;
}
ResultScreen.Recording.2023-05-26.at.1.23.01.AM.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.The cursor does not move to the next line after pressing Shift+Enter while using the mention feature What is the root cause of that problem?https://github.com/Expensify/App/blob/21fefdb19cd7262f9caaad132d30ea426426f017/src/pages/home/report/ReportActionCompose.js#L796-805 What changes do you think we should make in order to solve the problem?
Here we should add a condition !e.shiftKey like this
What alternative solutions did you explore? (Optional)NA |
Job added to Upwork: https://www.upwork.com/jobs/~01830e384c4fcaaa98 |
Current assignee @twisterdotcom is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Triggered auto assignment to @cristipaval ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The cursor does not move to the next line when Shift+Enter is pressed (when suggestions and emoji panels are opened.) What is the root cause of that problem?The root cause is: What changes do you think we should make in order to solve the problem?We should consider the "Shift" key-pressed event in the current key event module.
It is fixed by simple code updating using already implemented functions. What alternative solutions did you explore? (Optional)I've checked and confirmed it 100%. issues19624.mp4If github video does not play, then please check it in this uploaded link: |
📣 @code0406! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@code0406 Which key do you mean? |
I will share the screenshot. If you need, I will share the code diff. |
@mollfpr can you review this prospal as well #19624 (comment) |
The current code is almost perfect.
That's all. |
@dhairyasenjaliya Thanks. I almost forget there’s another proposal above. |
@cristipaval bump on this please. |
Thanks @mollfpr ! @dhairyasenjaliya you're all set. |
📣 @dhairyasenjaliya You have been assigned to this job by @cristipaval! |
@mollfpr @cristipaval PR ready for review |
Oooh! Merged. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.25-8 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-06-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.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
https://github.com/Expensify/App/pull/18469/files#r1231104731
https://expensify.slack.com/archives/C049HHMV9SM/p1686839540389379
Yes!
|
I think I managed to pay you all via the Upwork iOS app on my mobile data. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The cursor should move to the next line when Shift+Enter is pressed.
Actual Result:
The cursor does not move to the next line when Shift+Enter is pressed. Instead, the first option from the popup is selected when using the mention feature.
NOTE: Same happening with emoji too
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.18-2
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
Notes/Photos/Videos: Any additional supporting documentation
Bug.2.mp4
Recording.760.mp4
Expensify/Expensify Issue URL:
Issue reported by: @usmantariq96
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684834428858769
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: