fix: skip frame-step on ARIA widgets that own arrow keys

Expand the arrow key guard to also skip elements with
role="separator" (PanelResizeHandle), role="slider", and
role="spinbutton" so keyboard panel resizing is not intercepted.
This commit is contained in:
theaiagent
2026-04-03 23:02:12 +03:00
parent 3bfcd8576b
commit 97c9a73578
+3 -1
View File
@@ -944,7 +944,9 @@ export default function VideoEditor() {
target instanceof HTMLInputElement ||
target instanceof HTMLTextAreaElement ||
target instanceof HTMLSelectElement ||
(target instanceof HTMLElement && target.isContentEditable)
(target instanceof HTMLElement &&
(target.isContentEditable ||
target.closest('[role="separator"], [role="slider"], [role="spinbutton"]')))
) {
return;
}