-
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
Fix pressing ESC closes both video player popover and the attachment preview #37077
Fix pressing ESC closes both video player popover and the attachment preview #37077
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-native-2024-02-22_16.03.31.mp4Android: mWeb Chromeandroid-chrome-2024-02-22_16.04.06.mp4iOS: Nativeios-native-2024-02-22_15.40.49.mp4iOS: mWeb Safariios-safari-2024-02-22_15.36.10.mp4MacOS: Chrome / Safaridesktop-chrome-2024-02-22_14.21.20.mp4MacOS: Desktopdesktop-app-2024-02-22_14.23.06.mp4 |
@bernhardoj You're missing a few screenshots, would you mind adding them? |
I have added iOS mWeb. Android/iOS/Android mWeb can't use ESC key |
@bernhardoj Generally we require tests for all platforms even where the change won't directly affect them (just to make sure the changes haven't inadvertently affected some other related behaviour). So in this case the test video would just be opening and closing a modal probably, even though it seems a bit pointless 😄 |
Got it. Added the video |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
✋ 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/Julesssss in version: 1.4.44-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
Details
The ESC event is captured by both popover and attachment preview, so both element is closed.
Fixed Issues
$ #36902
PROPOSAL: #36902 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Android/iOS/Android mWeb
Can't use ESC key
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-02-22.at.23.08.20.mov
Android: mWeb Chrome
Screen.Recording.2024-02-22.at.23.10.15.mov
iOS: Native
iOS: mWeb Safari
Screen.Recording.2024-02-22.at.21.34.10.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-22.at.18.54.04.mov
MacOS: Desktop
Screen.Recording.2024-02-22.at.18.54.30.mov