fix ctrl + k hotkey not working for browser with some extensions (#2481)
This commit is contained in:
1 parent
b3497d9ed6
commit
31c6d13fdf
6 files changed
+40
-42
No files matched your search
@@ -434,9 +434,8 @@ export function SearchModalRenderer() {
|
||||
return;
|
||||
}
|
||||
|
||||
// means some menu or modal window is open
|
||||
const lastNode = document.body.lastElementChild;
|
||||
if (lastNode && !lastNode.hasAttribute('data-last-node')) {
|
||||
const portalContainer = document.getElementById('portalContainer');
|
||||
if (portalContainer && portalContainer.children.length > 0) {
|
||||
return;
|
||||
}
|
||||
setOpen(true);
|
||||
|
||||
Reference in new issue
Block a user