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 a hotkey for settings #991

Merged
merged 3 commits into from
Sep 26, 2024
Merged

add a hotkey for settings #991

merged 3 commits into from
Sep 26, 2024

Conversation

mcmonkey4eva
Copy link
Member

@mcmonkey4eva mcmonkey4eva commented Sep 26, 2024

for #942

That issue links multiple Human-Interface-Guidelines that suggest CTRL+, (meta key and comma) as recommended for a Settings hotkey, so I used that.

The keybinds extension uses a mix of classname and ID based button maps as its hotkey registration handling, so I matched that, using specifically a unique classname as that's easiest to apply directly (vs adding an ID requires also modifying SidebarIcon to support that). The old UI uses classname comfy-settings-btn so I copied that to the new UI, allowing the hotkey to work the same on both UI variants.

Worked in local testing, will add playwright test momentarily

@huchenlei huchenlei merged commit 81119ac into main Sep 26, 2024
9 checks passed
@huchenlei huchenlei deleted the settings-hotkey branch September 26, 2024 23:25
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