Skip to content

Commit b5e44b3

Browse files
dsshimelclaude
andcommitted
fix Alt+Left/Right browser navigation in simulator
The keyboard handler for stepping through flows was intercepting all ArrowLeft/ArrowRight events, preventing browser back/forward. Now skips when any modifier key (Alt, Ctrl, Meta) is held. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1e5b157 commit b5e44b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

attendabot/frontend/src/simulations/FlowDiagram.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export default function FlowDiagram({ flow }: { flow: AuthFlow }) {
5151
// Keyboard shortcuts
5252
useEffect(() => {
5353
const handler = (e: KeyboardEvent) => {
54+
if (e.altKey || e.ctrlKey || e.metaKey) return;
5455
if (e.key === "ArrowRight" || e.key === " ") {
5556
e.preventDefault();
5657
next();

0 commit comments

Comments
 (0)