Skip to content

fix: space leader-key conflict in Excalidraw tabs (#309)#310

Closed
junereycasuga wants to merge 1 commit into
ZenNotes:mainfrom
junereycasuga:fix/excalidraw-hand-drag
Closed

fix: space leader-key conflict in Excalidraw tabs (#309)#310
junereycasuga wants to merge 1 commit into
ZenNotes:mainfrom
junereycasuga:fix/excalidraw-hand-drag

Conversation

@junereycasuga

Copy link
Copy Markdown
Contributor

Fixes the Space leader-key conflict in Excalidraw tabs (#309)

When Space is configured as the Vim leader key, ZenNotes currently consumes Space before Excalidraw can use it for its temporary hand/pan mode. This makes it impossible to hold Space and drag around the canvas.

This PR keeps the existing short-press Space leader behavior, while allowing a long Space press inside Excalidraw to pass through to Excalidraw for canvas panning.

Changes:

  • Adds Excalidraw-specific Space handling in VimNav.
  • Short Space press still opens leader mode.
  • Long Space press activates Excalidraw hand/pan behavior.
  • Pressing the next leader key before releasing Space still works as a leader sequence.
  • Scopes the behavior to active Excalidraw editor surfaces.
  • Leaves non-Space leader mappings unchanged.

Before:
Cap 2026-07-02 at 09 58 42

After:
Cap 2026-07-02 at 10 19 34

@junereycasuga
junereycasuga requested a review from adibhanna as a code owner July 2, 2026 03:31
@junereycasuga

Copy link
Copy Markdown
Contributor Author

Closing after commit 2b21343

@junereycasuga
junereycasuga deleted the fix/excalidraw-hand-drag branch July 3, 2026 06:55
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