Skip to content

Conversation

davvid-comfy
Copy link

@davvid-comfy davvid-comfy commented Oct 9, 2025

Summary

Make it easier to change the mask brush size. These keybindings are familiar to users of other image editors.

Changes

  • What: Added [ to decrease and ] to increase the brush size.

Review Focus

Is this generically useful enough to include the default keybindings?

┆Issue is synchronized with this Notion page by Unito

References

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Oct 9, 2025
Copy link

github-actions bot commented Oct 9, 2025

🎨 Storybook Build Status

loading Build is starting...

⏰ Started at: 10/10/2025, 06:02:50 AM UTC

🚀 Building Storybook

  • 📦 Installing dependencies...
  • 🔧 Building Storybook components...
  • 🌐 Preparing deployment to Cloudflare Pages...

⏱️ Please wait while the Storybook build is in progress...

Copy link

github-actions bot commented Oct 9, 2025

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 10/10/2025, 06:17:50 AM UTC

📈 Summary

  • Total Tests: 493
  • Passed: 460 ✅
  • Failed: 0
  • Flaky: 3 ⚠️
  • Skipped: 30 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 451 / ❌ 0 / ⚠️ 3 / ⏭️ 30
  • chromium-2x: View Report • ✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • chromium-0.5x: View Report • ✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • mobile-chrome: View Report • ✅ 6 / ❌ 0 / ⚠️ 0 / ⏭️ 0

🎉 Click on the links above to view detailed test results for each browser configuration.

jtydhr88
jtydhr88 previously approved these changes Oct 9, 2025
Copy link
Collaborator

@jtydhr88 jtydhr88 left a comment

Choose a reason for hiding this comment

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

Tested on my local, worked as expected

Copy link
Contributor

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

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

The mask editor has an internal Keybinding manager because we don't have a keybinding context system yet and adding a keybinding globally will trigger whether or not the mask editor is initialized or opened.

Make it easier to change the mask brush size. These keybindings are
familiar to users of other image editors.
Handle the brush size hotkeys in the MaskEditor's KeyboardManager
instead of using global keybindings. This keeps these hotkeys scoped to
the editor instead of firing globally.
@davvid-comfy
Copy link
Author

I see what you mean about the local keybinding manager. I added a 2nd commit that handles this behavior using the scoped keyDown callback instead of with a global keybinding. If you think the end result looks better I'll squash the two commits together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants