Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Module input/handlers/animation-shortcuts

    Animation-shortcut concern extracted from input/input-handler.ts.

    Owns the five keyboard bindings that drive DimensionAnimationManager — all of them target the currently selected dimension and live on the NAVIGATION input context:

    • K : Toggle play/pause for the selected dim.
    • Home / End : Jump to the first / last frame of the selected dim.
    • Shift+↑ : Increase the animation FPS for the selected dim.
    • Shift+↓ : Decrease the animation FPS for the selected dim.

    Each binding short-circuits when no dim is selected (getSelectedDimensionIndex returns -1) or when the animation manager isn't constructed yet — both checks live inside the handler bodies so the InputHandler can wire the registration before scene load (the bindings decline until both sides are ready).

    The bindings retain the inlined registerAnimationShortcuts key codes, NAVIGATION context, logging, and preventDefault settings.

    AnimationShortcuts
    AnimationShortcutsContext