mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 09:13:34 +00:00
Tools: Ctrl+` chooses the selection tool chosen last
Select Last Selection Tool (tool.selectLastSelection, {}) chooses the
one of Selection, Direct Selection and Group Selection chosen last,
or the Selection tool before any of them is chosen. Magic Wand, Lasso
and other tools do not change which one it chooses, and running it
with that tool active keeps it. It returns {tool} and adds no undo
step. The help page lists the shortcut:
https://helpx.adobe.com/illustrator/using/default-keyboard-shortcuts.html
- Default Ctrl+` (Cmd+~) on Windows and Linux. macOS keeps Command+`
for switching between an app's windows, so the command has no
default there; Edit > Keyboard Shortcuts can assign one. The keymap,
the shortcut editor and engine.commands use the platform's default.
- The headless backend and vectorcraft-cli run accept it as a host
command.
- In the app, tool.select and tool.selectLastSelection return the
error when the tool switch fails. The app's tool.select reported
success before and showed the error only in the status bar.
- A row for the label in every catalog; docs/mcp.md and the progress
line in docs/target-app-parity.md.
This commit is contained in:
+11
-1
@@ -1392,7 +1392,8 @@ vectorcraft-cli run --cmd file.new --params '{"width":800,"height":600}' \
|
||||
|
||||
`run` prints one JSON line per step (`open`, `cmd`, `export`) and exits non-zero on the first failure, naming the step
|
||||
(counting from 0, as `"$N"` references do) and its command. `--params` applies to the `--cmd` just before it. `run`
|
||||
also accepts the host commands `file.open`, `file.save`, `file.export`, `file.exportForScreens` and `tool.select`.
|
||||
also accepts the host commands `file.open`, `file.save`, `file.export`, `file.exportForScreens`, `tool.select` and
|
||||
`tool.selectLastSelection`.
|
||||
`run --in`, `convert` and `info` read every format `document.open` reads (`vectorcraft-cli --help` lists them).
|
||||
|
||||
### Steps from a file or standard input
|
||||
@@ -4967,6 +4968,15 @@ macOS, Ctrl elsewhere), drags with the selection tool chosen last (`select_tool`
|
||||
Curvature and anchor tools until one is chosen; the release gives the tool back as it was, so the Pen goes on drawing
|
||||
the path it had begun while that stays selected. Its reply's `tool` is the tool given back.
|
||||
|
||||
`tool.selectLastSelection` (Select Last Selection Tool, `{}`) chooses the selection tool chosen last, as Ctrl+` does on
|
||||
Windows and Linux ([the help page](https://helpx.adobe.com/illustrator/using/default-keyboard-shortcuts.html) lists the
|
||||
shortcut among those for selections). Only Selection, Direct Selection and Group Selection count: choosing Magic Wand,
|
||||
Lasso or any other tool leaves the remembered one as it was. Before any of the three is chosen it chooses the Selection
|
||||
tool; with the remembered tool already active it keeps it, so running it again does not cycle. It returns `{tool}` and
|
||||
adds no undo step. On macOS it has no default shortcut, because the system uses Command+` to switch between an app's
|
||||
windows; Edit › Keyboard Shortcuts can assign one. The Selection tool as the first choice and the macOS default are
|
||||
VectorCraft's own rules. The headless backend and `vectorcraft-cli run` run it too.
|
||||
|
||||
```json
|
||||
{"name":"pointer_gesture","arguments":{"tool":"pen","events":[{"kind":"down","x":100,"y":300},{"kind":"up","x":100,"y":300},{"kind":"down","x":200,"y":300},{"kind":"drag","x":250,"y":300},{"kind":"up","x":250,"y":300}]}}
|
||||
{"name":"pointer_gesture","arguments":{"mods":{"cmd":true},"events":[{"kind":"down","x":250,"y":300},{"kind":"drag","x":250,"y":260},{"kind":"up","x":250,"y":260}]}}
|
||||
|
||||
@@ -973,6 +973,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
- Cmd/Ctrl+Alt+N (`file.newWithoutDialog`) makes a document without opening the New Document dialog, on the key the reference app's [Default keyboard shortcuts](https://web.archive.org/web/20260726060015/https://helpx.adobe.com/illustrator/using/default-keyboard-shortcuts.html) page assigns to creating a document directly. The page does not say which settings the document gets. VectorCraft gives it the settings the dialog opens on (the first Recent entry, or the Print category's Letter while Recent is empty) and the next untitled name.
|
||||
- Cmd/Ctrl+F6 (`window.nextDocument`) and Cmd/Ctrl+Shift+F6 (`window.previousDocument`) make the next and the previous open document the current one, in tab order and as a click on its tab does, on the keys the reference app's [Default keyboard shortcuts](https://web.archive.org/web/20260726060015/https://helpx.adobe.com/illustrator/using/default-keyboard-shortcuts.html) page lists for navigating to the next and the previous document. After the last document comes the first, and before the first document comes the last. From the Home screen the keys go to the first and the last document. Keyboard Shortcuts lists both under Window.
|
||||
- Cmd/Ctrl+Alt+Shift+U (`document.switchUnits`) switches the document to the next unit of measurement, in one undo step, on the key the reference app's [Default keyboard shortcuts](https://web.archive.org/web/20260726060015/https://helpx.adobe.com/illustrator/using/default-keyboard-shortcuts.html) page lists for switching units of measurement. The page does not give an order. VectorCraft steps through the units in the order a right-click on a ruler lists them (Points, Picas, Inches, Millimeters, Centimeters, Pixels, Feet & Inches, Meters, Yards, Feet) and goes from Feet back to Points.
|
||||
- Ctrl+` (`tool.selectLastSelection`, Select Last Selection Tool) on Windows and Linux chooses the selection tool chosen last of Selection, Direct Selection and Group Selection, on the key [the help page](https://helpx.adobe.com/illustrator/using/default-keyboard-shortcuts.html) lists for switching to the last-used selection tool; Magic Wand and Lasso do not count. Before one is chosen it chooses the Selection tool, and it keeps the remembered tool when that tool is already active. On macOS it has no default shortcut, because the system uses Command+` to switch between an app's windows; Edit › Keyboard Shortcuts can assign one. The first choice and the macOS default are VectorCraft's own rules.
|
||||
- Shortcut sets other apps save as text (`.kys`) open in Import Shortcut Set from File › Open, from Edit › Keyboard Shortcuts › Import… in the desktop app, or from a drop on the window. It matches each entry to a tool, command or panel by name and decodes the file's key and modifier codes where VectorCraft's default shortcuts agree on them; the user answers the rest, and Apply fills the Keyboard Shortcuts dialog's working set. The answers are kept with the preferences for the next import (`shortcutSet.read`, `importMatches.*`).
|
||||
- Edit › Keyboard Shortcuts › Export Text… saves the set shown in the dialog as a UTF-8 text file, as the reference app's [Export keyboard shortcuts list as a text document](https://helpx.adobe.com/illustrator/desktop/get-started/preferences-and-settings/export-keyboard-shortcuts-list.html) page describes (`shortcuts.exportText {path?}`). The layout is VectorCraft's own: the set's name, then the Tools and Menu Commands rows in the dialog's order, each with its name, a tab and its shortcuts as the dialog shows them, and nothing after the tab for a row with no shortcut. Tests `shortcut_editor::tests::export_text_*` and `tests::picks::keyboard_shortcuts_export_text_writes_the_working_set_as_text`.
|
||||
- On Windows and Linux the app bar is the window's title bar (its own minimize, maximize and close buttons, drag to move, edges to resize), with the dragon app icon as the brand mark; dialogs and menus size to their content. As on a native menu bar, once one menu is open, moving the pointer onto another title opens that one.
|
||||
|
||||
Reference in New Issue
Block a user