Skip to content

feat(ui-egui): Alt+1..9 pick up a pen, Alt+0 goes back to typing (#44) - #235

Merged
DWAA1660 merged 2 commits into
AlienTechSoftware:mainfrom
DWAA1660:feat/pen-shortcuts/44
Nov 14, 2026
Merged

DWAA1660 merged 2 commits into
AlienTechSoftware:mainfrom
DWAA1660:feat/pen-shortcuts/44

Conversation

@DWAA1660

Copy link
Copy Markdown
Collaborator

Part of #44: the request for "a simple shortcut that can be bound with kb or xp-pen tablets".

What changes

  • Alt+1 to Alt+9 pick up the pen in that place on the Draw tab's rack, from anywhere in the window, so a tablet's express keys (or any keyboard) can be bound to pens.
  • Alt+0 puts the pen down and goes back to typing.
  • A number past the end of the rack does nothing.
  • On a Mac, the character that Option+digit types (e.g. ¡) is dropped, so it does not land in the note.
  • The rack's tooltips name each pen's key, e.g. "Pen red (Alt+1)", and the status line says which pen was picked up.
  • docs/gaps.md lists the keys under Pen and drawing.

Ctrl+Alt+digit is left alone. Only Alt alone matches.

The other half of #44 (smoother pen strokes and highlighter ends) is not touched here, so this PR does not close the issue.

Tests

  • New UI test alt_and_a_number_pick_up_a_pen_and_alt_zero_goes_back_to_typing. It covers Alt+2 and Alt+5 picking up those pens, Alt+0 going back to typing, Alt+9 past the end of the rack doing nothing, a plain digit staying text, and an Option character not reaching the note.
  • cargo xtask ci passes locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Y4im4nvZvQHZdShop1ff8w

…enTechSoftware#44)

Tablet express keys and keyboards can now change pens without reaching for
the ribbon. Alt+1 to Alt+9 pick up the pen in that place on the Draw tab's
rack, from anywhere in the window; Alt+0 puts the pen down and goes back to
typing. A number past the end of the rack does nothing. On a Mac, the
character Option+digit types is dropped so it does not land in the note.
The rack's tooltips name each pen's key.

Part of AlienTechSoftware#44 (the shortcut request; the stroke smoothing in the same issue is
not touched here).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y4im4nvZvQHZdShop1ff8w
@DWAA1660
DWAA1660 merged commit 1d82dc8 into AlienTechSoftware:main Nov 14, 2026
10 checks passed
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