-
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
[$1000] [HOLD for payment 2023-05-16] Typing a new line with "SHIFT + ENTER" in the composer doesn't work (neither the arrow keys to move the cursor up or down) #18420
Comments
Triggered auto assignment to @arielgreen ( |
Bug0 Triage Checklist (Main S/O)
|
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @flodnv ( |
Regression from this PR #18273 |
Thanks! |
Need to pass excludeNodes App/src/components/KeyboardShortcutsModal.js Lines 52 to 56 in ac16487
Extra last 3 parameters have to pass I think. |
@Pujan92 that does seem to fix the problem, can you elaborate a bit about the root cause and why this fixes it? I'm pretty unfamiliarized with the |
This is not fixing the up and down arrows keys not working, I'm guessing we have to do something similar for the other shortcuts? Update: applying the same solution to the other shortcuts (up/down) seems to fix that problem too. |
Basically, we are configuring the callback function for these keyboard shortcuts and I think with this we are restricting the normal behavior of those key shortcuts. So for textInput we don't want to use this callback and let the OS do the normal function. Considering that we are providing the nodes which we want to exclude from this behavior where I am suggesting to pass |
A bit more on this after debugging: The shortcuts (ENTER / UP ARROW / DOWN ARROW) have App/src/libs/KeyboardShortcut/bindHandlerToKeydownEvent/index.js Lines 46 to 48 in 2437e37
That prevent default is the thing that stops the textarea from behaving normally. This proposal or similar of App/src/components/KeyboardShortcutsModal.js Lines 52 to 65 in 2437e37
makes us avoid calling App/src/libs/KeyboardShortcut/bindHandlerToKeydownEvent/index.js Lines 24 to 35 in 2437e37
|
@s77rt proposed here another path that makes sense to me: https://expensify.slack.com/archives/C02NK2DQWUX/p1683222520307999?thread_ts=1683221275.330439&cid=C02NK2DQWUX
|
I think the options are:
I'm not decided on which way to go yet. |
Current assignee @arielgreen is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Current assignee @aldo-expensify is eligible for the External assigner, not assigning anyone new. |
Just added External to get the Upwork job created, unassigning @mananjadhav |
@arielgreen Accepted, but let's hold payment till we get a clarification on regressions. @aldo-expensify Did the linked PR cause any regression? I'm not sure as it"s linked in some issues. |
Which linked PR? this one? #18273 I think that caused the regression. |
📣 @s77rt You have been assigned to this job by @aldo-expensify! |
@sr77rt adding you as the C+ of the issue |
Started slack discussion about how to prevent this in the future: https://expensify.slack.com/archives/C049HHMV9SM/p1684528122955109 |
@aldo-expensify I meant the other way around. Did this PR cause other regressions? |
Ahh I see. Not that I remember. You mentioned an issue linking this, can you copy the link here? |
That looks unrelated. |
Ah okay. Just wanted to be sure. @arielgreen I think we are good to issue the payment. |
All good, thanks for checking ! |
paid |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Related bug?
Expected Result:
A new line is added
Actual Result:
It isn’t creating new line
Workaround:
Type the message somewhere else and copy/paste it into the composer
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.10-2
Reproducible in staging?: y
Reproducible in production?: n
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
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683219007822509
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: