fix(ai-toolbar): align fallback shortcut and identity guards

This commit is contained in:
2026-04-23 05:10:55 -04:00
parent 85f4066ce2
commit 502bd6237a
2 changed files with 66 additions and 0 deletions

View File

@@ -222,6 +222,7 @@ export const AIToolbar = ({
const isV = e.key === "v" || e.key === "V";
const isModifier = e.ctrlKey || e.metaKey;
if (!isV || !isModifier || e.shiftKey || e.altKey) return;
if (e.ctrlKey && e.metaKey) return;
if (isEditableTarget(e.target)) return;
pasteHandledByEvent = false;