Add keyboard shortcuts for generate/skip/interrupt#14269
Merged
AUTOMATIC1111 merged 4 commits intoAUTOMATIC1111:devfrom Dec 14, 2023
Merged
Add keyboard shortcuts for generate/skip/interrupt#14269AUTOMATIC1111 merged 4 commits intoAUTOMATIC1111:devfrom
AUTOMATIC1111 merged 4 commits intoAUTOMATIC1111:devfrom
Conversation
(Removed Alt+Enter) Ctrl+Enter to start/restart generation (New) Alt/Option+Enter to skip generation (New) Ctrl+Alt/Option+Enter to interrupt generation
Collaborator
|
I think escape would make more sense. |
Contributor
Author
|
Perhaps, yes. But it's necessary to check that Esc to close popup 01c8f18 does not interfere with Esc during generation. For example, if I want to edit the styles while the generation is in progress :) I'll supplement the commit a little later. |
script.js
Outdated
Comment on lines
+170
to
+172
| } else { | ||
| if (!globalPopup) return; | ||
| globalPopup.style.display = "none"; |
Collaborator
There was a problem hiding this comment.
This else isn't necessary, the existing handler is still gonna fire.
Esc is also used to close the full screen image viewer.
Contributor
Author
There was a problem hiding this comment.
Thanks for the tip! Made the edits.
AUTOMATIC1111
approved these changes
Dec 14, 2023
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A small addition to #13644
Ctrl+Enter to start/restart a generation
add: Alt+Enter to skip
add: Esc to interrupt (if there is a popup or lightbox, closes it first)
Screenshots/videos:
skip-interrupt-keyb-shortcuts.mp4
Checklist: