added direct isTrusted guard to synthetic escape can still reach other UI without retriggering the walkthrough stop handler

This commit is contained in:
Madison 2026-05-28 12:46:25 -05:00
parent e1692c12bf
commit 533d056ff9

View File

@ -132,7 +132,7 @@ function WalkthroughEngine() {
if (!isRunning) return;
const handleKey = (e: KeyboardEvent) => {
if (e.key === 'Escape') {
if (e.key === 'Escape' && e.isTrusted) {
e.preventDefault();
stop();
}