Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hotkeys for undo and redo #1576

Merged
merged 10 commits into from
Jul 13, 2022
Merged

Add hotkeys for undo and redo #1576

merged 10 commits into from
Jul 13, 2022

Conversation

Andrew630
Copy link
Collaborator

@Andrew630 Andrew630 commented Jul 7, 2022

This PR adds hotkeys for undo and redo button, and addresses issue #1553.
Before:

Jul-07-2022 04-44-04

After:

111

Copy link
Collaborator

@Xiao-zhen-Liu Xiao-zhen-Liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please take care of these comments.

@Xiao-zhen-Liu Xiao-zhen-Liu changed the title hotkeys for undo and redo Add hotkeys for undo and redo Jul 7, 2022
Copy link
Collaborator

@Xiao-zhen-Liu Xiao-zhen-Liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address the comments and make some refactoring to improve readability.

Copy link
Collaborator

@Xiao-zhen-Liu Xiao-zhen-Liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor change needed and then it's good to be merged.

@Xiao-zhen-Liu Xiao-zhen-Liu merged commit 70278c5 into master Jul 13, 2022
@Xiao-zhen-Liu Xiao-zhen-Liu deleted the undo-redo-hotkey branch July 13, 2022 21:14
private _handleKeyboardAction(event: any) {
this._onProcessKeyboardActionObservable = new Subject();
event.preventDefault();
this.workflowVersionService
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this workflowversion preview in this logic?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is listening for when workflow version preview is opened, do not enable undo/redo hotkey.

@sadeemsaleh sadeemsaleh added this to In progress in User System via automation Jul 14, 2022
@sadeemsaleh sadeemsaleh removed this from In progress in User System Jul 14, 2022
Xiao-zhen-Liu added a commit that referenced this pull request Jul 14, 2022
Xiao-zhen-Liu pushed a commit that referenced this pull request Jul 14, 2022
The PR fixes a bug introduced by #1576, which blocks all other keyboard events other than undo/redo hotkeys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants