Skip to content

Allow typing numbers into Slider widgets#5355

Merged
dacap merged 1 commit into
aseprite:betafrom
ckaiser:keyboard-slider
Sep 4, 2025
Merged

Allow typing numbers into Slider widgets#5355
dacap merged 1 commit into
aseprite:betafrom
ckaiser:keyboard-slider

Conversation

@ckaiser

@ckaiser ckaiser commented Aug 15, 2025

Copy link
Copy Markdown
Member

Adds the ability for the user to use the number keys change the value of slider widgets, including negative numbers. Pressing backspace also deletes a number like in a text input, serves as both a power user feature and an accessibility one, for fine grained control and keyboard navigation.

Recording.2025-08-15.053617.mp4

(I should've recorded this with some kind of input overlay, hopefully it's understandable enough)

@ckaiser ckaiser requested a review from dacap as a code owner August 15, 2025 08:55
@aseprite-bot

Copy link
Copy Markdown
Collaborator

clang-tidy review says "All clean, LGTM! 👍"

@dacap dacap left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM 👍 Minor change to use base::tick_t instead of base::Chrono.

Comment thread src/ui/slider.cpp Outdated
Comment thread src/ui/slider.cpp Outdated
Comment thread src/ui/slider.h Outdated
@dacap dacap assigned ckaiser and unassigned dacap Sep 1, 2025
@aseprite-bot

Copy link
Copy Markdown
Collaborator

clang-tidy review says "All clean, LGTM! 👍"

@ckaiser ckaiser assigned dacap and unassigned ckaiser Sep 1, 2025
@dacap dacap merged commit 834a948 into aseprite:beta Sep 4, 2025
12 checks passed
@ckaiser ckaiser deleted the keyboard-slider branch September 10, 2025 05:17
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