-
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 18601][$250] mWeb/Chrome - Workspace - Unable to use Enter key for starting a new line under Personal message box #10906
Comments
Triggered auto assignment to @neil-marcellini ( |
@neil-marcellini Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Looks like a legitimate problem and would be a good external issue. |
Triggered auto assignment to @mallenexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Triggered auto assignment to @MonilBhavsar ( |
ProposalRCA: Solution:
This solution is when focused input should keep focused regardless of keyboard shortcuts triggers. (reference: #10705 (comment)) before.fix.movafter.fix.mov |
ProposalRoot cause App/src/components/OptionsSelector/BaseOptionsSelector.js Lines 53 to 67 in d312075
On Desktop/Web can use Solution diff --git a/src/components/OptionsSelector/BaseOptionsSelector.js
b/src/components/OptionsSelector/BaseOptionsSelector.js
index cbcb0faa4..dd15a495d 100755
--- a/src/components/OptionsSelector/BaseOptionsSelector.js
+++ b/src/components/OptionsSelector/BaseOptionsSelector.js
@@ -18,6 +18,7 @@ import KeyboardShortcut from '../../libs/Keyboard
Shortcut';
import ONYXKEYS from '../../ONYXKEYS';
import FullScreenLoadingIndicator from '../FullscreenLoadingIndica
tor';
import {propTypes as optionsSelectorPropTypes, defaultProps as opt
ionsSelectorDefaultProps} from './optionsSelectorPropTypes';
+import canUseTouchScreen from '../../libs/canUseTouchscreen';
const propTypes = {
/** Whether we should wait before focusing the TextInput, usef
ul when using transitions on Android */
@@ -62,7 +63,7 @@ class BaseOptionsSelector extends Component {
},
enterConfig.descriptionKey,
enterConfig.modifiers,
- true,
+ !canUseTouchScreen(),
() => !this.state.allOptions[this.state.focusedIndex],
);
Result Screen.Recording.2022-09-13.at.15.20.24.movScreen.Recording.2022-09-13.at.15.19.31.mov |
cc @Expensify/design |
So, If I am understanding it correct, we're implementing a new feature as a part of this issue? |
cc: @JmillsExpensify what's the latest here? |
@JmillsExpensify @MonilBhavsar what's next here? |
Still on hold |
Changing to monthly |
PR to introduce a new invite page was merged. |
Is this the same issue as #18419 ? |
@aldo-expensify yes, but we were only able to reproduce this issue on mWeb |
I think this is the same issue, it is the message when you are adding new workspace members, right? The issues is pretty old here so the videos are very outdated. The message is on a different screen now, but the bug is still there. Do you have any preference on which one we should keep open? I asked here in slack: https://expensify.slack.com/archives/C01GTK53T8Q/p1685138015892469 for opinions on how to deal with this keyboard shortcuts causing the issue. |
I think we should close this issue since the other one is much newer. But since these are duplicate issues, we shouldn't pay the reporting bonus on the new issue since this one was reported first by Applause. Gonna close this one out for now, feel free to reopen for discussion if you disagree. |
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:
Unable to use Enter key for starting a new line under Personal message box
Actual Result:
Able to use Enter key for starting a new line under Personal message box
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.98.0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers): any
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug5723405_Screen_Recording_20220908-135730_Chrome.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Interna Team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: