Skip to content

Keyboard Shortcuts: OK button in view, Enter is OK, visible scroll bar handles - #1113

Merged
h-a-n-a-s-h-i merged 3 commits into
storytold:mainfrom
pravdomil:claude/keyboard-shortcuts-overflow-e1e74e
Oct 13, 2026
Merged

h-a-n-a-s-h-i merged 3 commits into
storytold:mainfrom
pravdomil:claude/keyboard-shortcuts-overflow-e1e74e

Conversation

@pravdomil

@pravdomil pravdomil commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Three fixes that came out of using Edit ▸ Keyboard Shortcuts, one commit each.

OK button in view

The editor's content was slightly taller than the dialog, so the dialog's outer scroll area cut the OK button in half and its scrollbar covered the right edge.

The editor no longer sits in an outer scroll area (modal_fit instead of modal). The command list and the selected-command editor take whatever height is left under the keyboard, so the OK row always fits, also in a small window. The dialog is 40 px taller when the window has room.

Enter is OK

Enter closes the editor like its OK button, also while the search field has focus. It stays with the shortcut recorder (Enter can be recorded), the preset rename field and an open preset menu.

Visible scroll bar handles (app-wide)

The scroll bar handle was filled with the colour of its own track (both the field background), so it only showed while hovered or dragged. It now takes the text colour (ScrollStyle::foreground_color). This is a theme change, so it applies to every scroll area, not only the command list.

Testing

  • New tests: the_ok_button_stays_inside_the_dialog_in_a_small_window, enter_is_ok_except_while_recording_or_renaming.
  • Headless snapshots of the dialog at 1680×1020 and 1280×720; the handle change was only looked at in this dialog, not in the other panels.
  • cargo fmt, cargo clippy -D warnings and the full test suite of effectcraft-ui-egui. The full cargo xtask ci was not run and the commits carry [skip ci], as requested.

🤖 Generated with Claude Code

pravdomil and others added 3 commits October 12, 2026 21:34
The editor's content was a little taller than its dialog, so the outer scroll
area clipped the OK button and its scrollbar covered the right edge. The dialog
now has no outer scroll area: the command list takes whatever height is left,
so the button row always fits, in small windows too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Enter closes the editor like its OK button, also while the search field has
focus. It stays with the shortcut recorder (Enter can be recorded), the preset
rename field and an open preset menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The handle was filled with the colour of its own track (both the field
background), so it only showed while hovered or dragged. It now takes the text
colour, in every scroll area.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pravdomil pravdomil changed the title Keyboard Shortcuts: keep the OK button in view Keyboard Shortcuts: OK button in view, Enter is OK, visible scroll bar handles Oct 12, 2026
@h-a-n-a-s-h-i
h-a-n-a-s-h-i merged commit 1b3c88d into storytold:main Oct 13, 2026
h-a-n-a-s-h-i pushed a commit that referenced this pull request Oct 13, 2026
…ands together

- Keyboard Shortcuts: Enter is not Delete while the delete confirmation is open (#1113 with #1019).
- Speed graph drag test compares proportions, since the Graph Editor now fits its selection (#1182 with #1109).
- Spanish panel test no longer demands the Chinese catalogs' exact rows (#996 with #1189, #1019).
- Object Matte gets its Simplified Chinese effect-name row (#1199 with #792).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@echelon

echelon commented Oct 13, 2026

Copy link
Copy Markdown
Member

Merged. Thank you for the contribution, @pravdomil! It landed on main together with a batch of other community PRs, after a full workspace build and test run. If you are not on our Discord yet, please join us: https://discord.gg/artcraft

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.

3 participants