-
Notifications
You must be signed in to change notification settings - Fork 234
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
Change maskeditor undo key combo #2915
base: main
Are you sure you want to change the base?
Conversation
Previous one conflicted with the litegraph node canvas undo action and did not have any effect. Alt key when used in combination with these keypresses should not have any conflict with browser or frontend.
I would propose the keybinding system should be changed instead to allow for the same keybinding in different zones to do different things. It is not logical for undo to be ctrl + z in one place and alt + z in another. Another problem I have is that alt + z opens the nvidia overlay on windows and is blocked from reaching the browser |
@@ -4919,15 +4919,15 @@ class KeyboardManager { | |||
// combinations | |||
|
|||
private undoCombinationPressed() { | |||
const combination = ['ctrl', 'z'] | |||
const combination = ['alt', 'z'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will conflict with any user that has already bound alt
+ z
to something else.
To resolve this without fixing the underlying issues (contexttual shortcuts & global ctrl
+ z
), the key bindings need to be configurable, with the defaults unchanged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well right now it doesn't even work at all so. Also there isn't even proper undo queue so that switching between the brush, eraser or "color"Selector initiate a new queue and a separated instance in the editor. There are so many basic things that are completely overlooked. Numerical representations for sliders, tooltip or explanation what the difference is between simple/hsl/lab, explanation for the "mask tolerance", option for feathering as only having tolerance will result in masks either being too small or select way too much. Ever since inpainting was introduced, we were told that better mask more than too little. Also a color selector (often referred to as color picker) is completely different thing. Especially when using pipette icon. It is meant to get the id of a color so that it can be selected in a brush palette.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would need to be split into multiple PRs.
@trsommer Nvidia overlay keybind can easily be configured to anything else. |
To really solve the keybinding issue, I invite you to look at this PR #1820 and this branch [keyboard-shortcuts-rewrite] I opened a few months ago. It directly addresses the problem you describe. It had other problems, but they can be fixed. I just did not have the time. |
Previous one conflicted with the litegraph node canvas undo action and did not have any effect. Alt key when used in combination with these keypresses should not have any conflict with browser or frontend.
┆Issue is synchronized with this Notion page by Unito