Skip to content

TimeField step should increment / decrement by 10 if Shift is pressed #156

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
ahmadalfy opened this issue Mar 16, 2025 · 1 comment · May be fixed by #158
Open

TimeField step should increment / decrement by 10 if Shift is pressed #156

ahmadalfy opened this issue Mar 16, 2025 · 1 comment · May be fixed by #158
Labels
✨ enhancement New feature or request 🍰 p3-low Tasks that are nice-to-have. Like minor bugs, non-essential features, or cosmetic changes.

Comments

@ahmadalfy
Copy link

Is your feature request related to a problem? Please describe.

Currently, when incrementing or decrementing a time field using the keyboard, the changes happen in single-step increments (e.g., increasing by 1 minute or 1 second per step). However, for users who need to make larger adjustments quickly, this can be tedious.

Describe the solution you'd like

It would be great if holding the Shift key while incrementing or decrementing a time field would increase or decrease the value by 10 instead of 1.

For example:

  • Pressing the up arrow normally increases the value by 1.
  • Pressing Shift + up arrow increases the value by 10.
  • Pressing the down arrow normally decreases the value by 1.
  • Pressing Shift + down arrow decreases the value by 10.

This behavior would improve efficiency for users who frequently adjust time values in larger steps.

Describe alternatives you've considered

  • Manually typing the desired time.
  • Using a separate control or dropdown for larger increments, but this adds UI complexity.

Additional context

This feature would be useful in cases where users need to quickly set time values, such as scheduling applications, timesheet entries, or countdown timers.

Let me know if you'd like any modifications before submitting!

@ahmadalfy ahmadalfy added the ✨ enhancement New feature or request label Mar 16, 2025
@logaretm
Copy link
Member

logaretm commented Mar 16, 2025

Yea, I think this might be worthwhile for minutes and seconds segments. Perhaps even for date fields' days and years segments.

Feel free to PR it, most of the logic is at useDateTimeSegmentGroup.

@logaretm logaretm added the 🍰 p3-low Tasks that are nice-to-have. Like minor bugs, non-essential features, or cosmetic changes. label Mar 16, 2025
ahmadalfy added a commit to ahmadalfy/formwerk that referenced this issue Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request 🍰 p3-low Tasks that are nice-to-have. Like minor bugs, non-essential features, or cosmetic changes.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants