Skip to content

Popup shortcuts #335

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Med-Yassine-B
Copy link

Added keyboard shortcuts to popups and alerts (S for save, D for discard, Escape to cancel)

when a popup like (save discard) appear the user can simply press (s) for save , (d) for discard or (escape) to cancel and hide popup withoute the need to use the mouse

like blender's alert's system

much faster

@tafode
Copy link
Contributor

tafode commented Mar 9, 2025

Hi @Med-Yassine-B,

I can understand your wish to get faster through the pop ups and don't want to switch to your mouse. But I also think that Blender should not be used as a reference for shortcuts. (They have way to much)😄 I think using "S" and "D" could lead to a lot of discarded changes, that should have been saved.

Personally, I would prefer to give one of the two buttons the focus and make it possible to tab through them, by setting the other button to next/previous and also enabling the ui_focus_next (tab) and ui_focus_prev (shift+tab). With that you would just press enter for save and tab enter for discard.

Would also be interessting what others would prefer.

I think the ESC shortcut for closing dialogs like palette editting sounds good and make sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants