Closed cded closed 1 year ago
I fixed the issues raised in the last PR but noticed another problem: any hotkey command is run twice every time, which leads to undoing twice, saving twice... Currently investigating this.
@cded FYI your changes were cherry-picked in the original PR #963 to preserve both conversation history and your commits authorship.
The PR is merged now, thanks a lot for finalizing it and more fixes 👍
Description from the previous PR:
Resolves https://github.com/StackStorm/st2web/issues/917
Adds hotkey shortcuts for the following functionality:
Save (ctrl/cmd + s): Shortcut alternative to manually clicking the save button Open (ctrl/cmd + o): When an orquesta workflow is selected, this will open it in a new tab Undo/Redo (ctrl/cmd + z, shift + z): Shortcut alternative to manually clicking the undo and redo buttons in the toolbar Copy/Cut/Paste (ctrl/cmd + c/x/v): Copy, Cut, and Paste workflow actions in the composer workspace Also adds click functionality for actions in the left side-panel to easily open in new tabs/windows.
This screen recording demonstrates the save shortcut, then copy/cut/paste, then undo/redo, and then opening orquesta workflow in a new tab from click and then shortcut: https://user-images.githubusercontent.com/46300738/163048338-6962f953-919c-49b2-b0a1-7609dea1ef69.mov