Action gestures - Factor Documentation (original) (raw)
Action gestures exist to keep keyboard shortcuts for common application operations consistent. undo-action
redo-action
cut-action
copy-action
paste-action
delete-action
select-all-action
new-action
open-action
save-action
save-as-action
revert-action
close-action
The following keyboard gestures, if not handled directly by any gadget in the hierarchy until reaching the world, are re-sent as action gestures to the first gadget:
Keyboard gesture | Action gesture |
---|---|
T{ key-down f { C+ } "z" } | undo-action |
T{ key-down f { C+ } "y" } | redo-action |
T{ key-down f { C+ } "x" } | cut-action |
T{ key-down f { C+ } "c" } | copy-action |
T{ key-down f { C+ } "v" } | paste-action |
T{ key-down f { C+ } "a" } | select-all-action |
T{ key-down f { C+ } "n" } | new-action |
T{ key-down f { C+ } "o" } | open-action |
T{ key-down f { C+ } "s" } | save-action |
T{ key-down f { C+ } "S" } | save-as-action |
T{ key-down f { C+ } "w" } | close-action |
Action gestures should be used in place of the above keyboard gestures if possible. For example, on macOS, the standard Edit menu items send action gestures.