Skip to content

disable jump to slide and group navigation shortcuts in preview - #24

Merged
xellanix merged 1 commit into
mainfrom
vite-bun
Jun 14, 2026
Merged

xellanix merged 1 commit into
mainfrom
vite-bun

Conversation

@xellanix

Copy link
Copy Markdown
Owner

Overview

Prevents global keyboard shortcuts from being registered when components are rendered in a preview context, resolving unexpected behavior and shortcut conflicts.

Key Changes

🐛 Bug Fixes

  • Disable shortcuts in preview
    • Stop the slide controller and projection queue from unconditionally binding the 0-9 keys within preview contexts.
    • Implement an early return guard in registration hooks when the isPreview state is active.
    • Include isPreview in effect dependency arrays to ensure proper lifecycle management and cleanup.

Version Bump

0.0.1

Prevent global keyboard shortcuts from being registered when components
are rendered in a preview context. Previously, mounting the slide
controller or projection queue unconditionally bound the 0-9 keys,
causing unexpected side effects and shortcut conflicts within previews.

To resolve this, the registration now respects the preview state:

- Added an early return guard in the registration hooks if `isPreview`
  is active.
- Included `isPreview` in the effect dependency arrays to ensure
  proper cleanup and lifecycle management.
@xellanix
xellanix merged commit b774659 into main Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant