mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-27 16:22:20 +01:00
Merge current dev and refresh PR #6741 from the 7011 integration
This commit is contained in:
@@ -129,6 +129,9 @@ export function createShortcutsPopover() {
|
||||
outside = (e) => {
|
||||
if (el.contains(e.target)) return;
|
||||
if (e.target.closest('#ge-shortcuts-btn')) return;
|
||||
// A click on a topbar dropdown row is an explicit toggle (e.g. the
|
||||
// Window menu's "Keyboard Shortcuts" row), not a click-away.
|
||||
if (e.target.closest && e.target.closest('.ge-topbar .dropdown')) return;
|
||||
toggleShortcuts(false);
|
||||
};
|
||||
setTimeout(() => document.addEventListener('mousedown', outside, true), 0);
|
||||
|
||||
Reference in New Issue
Block a user