mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-08 09:31:03 +00:00
Holding a single-key tool shortcut becomes temporary: releasing it returns to the previous tool (a quick tap still switches for good). With the Pen chosen, holding S chooses Scale; letting go of S after 0.25 s or more, or after Scale was used while S was down, chooses the Pen again. A press shorter than 0.25 s, with nothing done in between, keeps Scale chosen as before. The 0.25 s threshold is VectorCraft's own value. A Cmd/Ctrl click, which the selection tool takes, does not count as using Scale. A drag of the Hand, Zoom or Rotate View tool chosen this way counts as using it. A key let go during a drag, with the pointer button held or with a dialog open, goes back once that ends. A key let go while the tool waits for its next click (the Dimension tool after its first point) goes back once the tool finishes or is canceled. With S held from the Pen and then V held, letting go of V returns to Scale, and letting go of S then returns to the Pen. Choosing a tool on the toolbar or from a menu while the key is down, the held tool included, ends the hold and keeps that tool, and so does the window losing the keyboard. While the preference is on, the key's repeats do not choose the tool again. The new General preference Hold a Tool Shortcut to Use the Tool Temporarily (`holdToolKeys`, on by default) turns the behavior off. With it off, every press and every repeat chooses the tool, as before. Its label has a row in every catalog. Docs: docs/mcp.md, docs/target-app-parity.md.