Skip to content

Studio: bare "s" key triggers both Split and snap-toggle at once (0.7.21) #1806

Description

@nicolasfilippini

Version: 0.7.21 (served Studio bundle)

Summary
Pressing s with no modifier fires two separate keydown handlers simultaneously: it Splits the selected clip at the playhead and toggles snap on/off. So every split also flips the snap state, and there's no way to rebind it.

Repro

  1. Select a clip and place the playhead inside it.
  2. Press s (no modifier).
  3. The clip splits and the snap toggle changes state.

Mechanism (served 0.7.21 bundle)
Two handlers react to "s" with no modifier:

  • t.key === "s" && !t.altKey → Split at playhead (selectedElement + currentTime)
  • g.key === "s" && !g.metaKey && !g.ctrlKey && !g.altKey → toggle snapEnabled

(Cmd/Ctrl+S = Save, separate and fine.)

Expected
One action per key. Either move one binding to a different key, or guard the handlers so Split doesn't also toggle snap. A rebind option would also solve it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions