fix: Attachment - Press enter fullscreen mode in video player by Tab#45379
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeNot applicable Android: mWeb ChromeScreen.Recording.2024-07-16.at.1.40.14.in.the.afternoon.moviOS: NativeScreen.Recording.2024-07-16.at.1.18.11.in.the.afternoon.moviOS: mWeb SafariScreen.Recording.2024-07-16.at.1.22.56.in.the.afternoon.movMacOS: Chrome / SafariScreen.Recording.2024-07-16.at.1.16.31.in.the.afternoon.movMacOS: DesktopScreen.Recording.2024-07-16.at.1.13.47.in.the.afternoon.mov |
|
@nkdengineer i can reproduce this on android native Screen.Recording.2024-07-16.at.1.37.42.in.the.afternoon.mov |
|
friendly bump @nkdengineer |
|
Checking this now. |
Isn't that the beahvior on every platform? when there is another element focused it shouldn't send. |
|
I'll update today |
|
Still investigating to find the reason |
|
@getusha It's a weird behavior in Android simulator that we can use the tab key to focus on an element. On native, we cannot detect the focus element here, and then We can't reproduce this in the real device so I don't think it's a bug. |
|
@getusha Friendly bump. |
|
@nkdengineer could you add a note on the PR description stating this doesn't apply for Android native? |
|
@getusha i updated |
|
So, is this issue/limitation only on android simulator, and not on real device? Did we confirm it? |
|
@MonilBhavsar Yes, the we don't have the tab key in the real device. To ensure can you run an adhoc build then I can test again in the real device. |
|
Thanks for clarifying. That's a good idea. Let's test it. |
This comment has been minimized.
This comment has been minimized.
|
Will check tomorrow |
|
Still investigating |
|
@MonilBhavsar After testing for many places in the App, the Android bug happens in all Modal components, other components don't face this bug. See the video here the cancel button is focused but the event of the delete button is triggered when we press on enter key. I can't find the RCA as to why this only happens in the Modal component. Screen.Recording.2024-10-07.at.17.29.11.mov |
|
@MonilBhavsar Any thoughts on this? |
That's the correct expected behavior, no? |
|
@MonilBhavsar That's not expected behavior let's see the behavior on the web. It's an Android app bug in Modal component. Screen.Recording.2024-10-14.at.16.40.04.mov |
|
Could you please describe the bug. I am not getting it, sorry. |
|
@MonilBhavsar The problem with the example video above is the cancel button is focused which should close the modal if we press the enter key. But actually, the delete button event is still triggered. It only happens on Android native and works well on other platforms. |
|
Ah, I see. Thanks for explaining. Not easy to figure out from video 😅 |
@MonilBhavsar Yes, it happens on the main. Currently, the bug that we're fixing in this PR is resolved except for the Android native. But it's an Android bug that happens in other places on the latest main of the App with different RCA. So I think we should ignore this here. |
Okay and that does happen when using external hardware keyboard on android device. Is that right? |
@MonilBhavsar Yes that happens when we use the tab key with external keyboard. |
|
Okay cool! I think very less people would actually use external keyboard with android device and since it happens on all modals, it's fine to descope it cc @getusha |
getusha
left a comment
There was a problem hiding this comment.
It would have been great to fix this on Android, since we're trying to address the same issue on other platforms.
|
@MonilBhavsar looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
All tests were passing |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.0.53-0 🚀
|
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.0.53-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.53-1 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.53-1 🚀
|
Details
Fixed Issues
$ #44379
PROPOSAL: #44379 (comment)
Tests
Note: It won't work on native Android because here
Offline tests
QA Steps
Note: It won't work on native Android because here
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
android.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov