-
Notifications
You must be signed in to change notification settings - Fork 116
Modified the behavior of spinner widget to react differently with dif… #3624
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
base: master
Are you sure you want to change the base?
Conversation
…ferent key combinations arrow up/down: change by 1 increment page up/down: change by 10 increment Alt + arrow up/down change by 5 increment Alt + page up/down change by 50 increment
merge upstream
|
This pull request looks OK to me. One aspect to keep in mind is that it changes the behavior of pressing simply "Page Up" & "Page Down" to increment/decrement by 10, instead of by 1, as is currently the case. |
|
For Mac users a bit of clarification may be needed: |
|
It would also be a nice thing to describe this feature in the example display https://github.com/ControlSystemStudio/phoebus/blame/master/app/display/model/src/main/resources/examples/controls_textentry.bob |
This could be a problem for existing displays. Users who are accustomed to pressing page up/down will suddenly jerk a motor into its limits. Instead of amplifying the existing increment/decrement steps, you could reduce them: arrow up/down: change by 0.1 increment, smaller than before |
|
"This could be a problem for existing displays. Users who are accustomed to pressing page up/down will suddenly jerk a motor into its limits. Instead of amplifying the existing increment/decrement steps, you could reduce them: arrow up/down: change by 0.1 increment, smaller than before |
increments with key combination ctrl+ up/down(5x); ctrl + page up/page down(10x); ctrl + left/right (10x)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the key combinations to ctrl + up/down arrow ( x5); ctrl+ page up/down (x10); ctrl + left/right (x 10)
Updated the description in the example for spinner widget
Do not quite understand this. |
With some keyboard, page up and page down are configured as Fn keys that need Fn key to activate it. For such keyboards, ctrl + page up/down won't work. To support users with such keyboard, an alternative is to make use of left/right arrow key. Oh sorry, I said left/down. I will correct that later. |
It failed to build when trying to reduce step size. So I changed behavior of arrow up/down and page up/down back to their default to avoid the potential issue for users. |
Change key combinations to remove ctrl + page up/down, because it behaves differently on two different system.
Remove the key combination of ctrl + page up/page down which doesn't actually work on a test system
|
the combination of Ctrl + Page Up/Down doesn't work when test and thus been removed. |
…ferent key combinations
arrow up/down: change by 1 increment
page up/down: change by 10 increment
Alt + arrow up/down change by 5 increment
Alt + page up/down change by 50 increment
Checklist
Testing:
Documentation: