Fix regression of keybord in emoji picker#32654
Conversation
|
@rushatgabhane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: Nativenot affected Android: mWeb Chromemchrome.moviOS: NativeNot affected iOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
Hi, despite this being a regression issue, I worked it to gain some practice and get to know the project before I start contributing properly. I just compared my findings to your solution. I assume you didn't want to change the new implementation of function shouldBlurOnKeyPress(event: KeyboardEvent): boolean {
if(event.key === 'Tab' || event.key === 'Enter') {
return true;
}
return false;
}if (searchInputRef.current && searchInputRef.current.isFocused() && ReportUtils.shouldBlurOnKeyPress(keyBoardEvent)) {
setIsUsingKeyboardMovement(true);
return;
}
if (searchInputRef.current && !searchInputRef.current.isFocused() && ReportUtils.shouldAutoFocusOnKeyPress(keyBoardEvent)) {
searchInputRef.current.focus();
}If i understood it correctly, space also blurred in the old behavior, so we might need to add that to The surrounding comments of this code turned a bit misleading in the previous changes. |
|
Thanks for the speedy work folks! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Fix regression of keybord in emoji picker (cherry picked from commit 12b6a77)
|
🚀 Cherry-picked to staging by https://github.com/yuwenmemon in version: 1.4.9-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.9-5 🚀
|

Details
Fix regression of keybord in emoji picker
Fixed Issues
$ #32644
#32652
PROPOSAL:
Tests
Offline tests
Same as above
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
Screen.Recording.2023-12-07.at.19.23.24.mov
MacOS: Chrome / Safari
Screen.Recording.2023-12-07.at.19.23.38.mov
MacOS: Desktop