fix(editor): linked doc popover close when layout is switched (#13867)

Fixing the disappearing linked doc menu called by @ when switching
language using Alt+Shift.
This commit is contained in:
Vitaly Barakov
2025-11-06 22:26:19 +08:00
committed by GitHub
parent d33df659f8
commit 9f6ea83ac1

View File

@@ -181,6 +181,10 @@ export class LinkedDocPopover extends SignalWatcher(
target: eventSource,
signal: keydownObserverAbortController.signal,
interceptor: (event, next) => {
if (event.key === 'GroupNext' || event.key === 'GroupPrevious') {
event.stopPropagation();
return;
}
if (event.key === 'ArrowRight' || event.key === 'ArrowLeft') {
event.preventDefault();
event.stopPropagation();