mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 17:08:57 +01:00
Fix EmojiPicker shortcut with panel open
This commit is contained in:
@@ -122,9 +122,9 @@ export const EmojiButton = React.memo(function EmojiButtonInner({
|
||||
const commandOrCtrl = commandKey || controlKey;
|
||||
const key = KeyboardLayout.lookup(event);
|
||||
|
||||
// We don't want to open up if the conversation has any panels open
|
||||
const panels = document.querySelectorAll('.conversation .panel');
|
||||
if (panels && panels.length > 1) {
|
||||
// We don't want to open up if the current conversation panel is hidden
|
||||
const parentPanel = buttonRef.current?.closest('.ConversationPanel');
|
||||
if (parentPanel?.classList.contains('ConversationPanel__hidden')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user