mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
added direct isTrusted guard to synthetic escape can still reach other UI without retriggering the walkthrough stop handler
This commit is contained in:
parent
e1692c12bf
commit
533d056ff9
@ -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();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user