-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Updating the Slider Widget to allow up and down arrow keys to navigate out of the slider. #102116
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
Conversation
| // Keyboard mapping for a focused slider. | ||
| final Map<ShortcutActivator, Intent> _shortcutMap = const <ShortcutActivator, Intent>{ | ||
| final Map<ShortcutActivator, Intent> _traditionalNavShortcutMap = const <ShortcutActivator, Intent>{ | ||
| SingleActivator(LogicalKeyboardKey.arrowUp): _AdjustSliderIntent.up(), |
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.
Are we sure that these are even correct? I mean, it's convenient to have up and down change the slider, but are they actually idioms that anyone knows about? I can see it being important for a vertical slider, but we don't have those.
Because if they're not really idiomatic, then we can just eliminate them and directional nav will just work.
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.
I don't know the history behind that particular bit of functionality so I went with the solution that affects the least amount of things. I'd be happy to switch to that smaller change if you think it's safe.
|
cc @clocksmith who initially added keyboard shortcut support to the Slider Widget and may know if the up and down shortcuts are idiomatic for some use cases. |
In preparation for upgrading linux VMs to Ubuntu, specify builders to use 'os: Debian' instead of 'os: Linux'. There should be no functional changes to current builders with this change. Bug:102252
… all the inner children layers (flutter#102309)
* Change dependency name to apple_signing for a better understanding of it's use * Updated Mac_ios test to run if .ci.yaml is updated
…lutter#102943) * Fix position of CupertinoContextMenu within Transform.scale (flutter#97896) * Fix after rebase
…102808) * Add prominent link to google fonts from icons * Update icons.dart * Update icons.dart
…" (flutter#103074) This reverts commit 74e9a6d.
|
ok so I screwed up this PR beyond repair with some git upstream command. I'll start a fresh one. |
|
We've all been there. :-) Just let me know what the new one is and I'll review it. |
Updating Slider Widget to allow up and down arrow keys to navigate out of the slider on directional navigation mode.
This prevents users using directional navigation from becoming stuck on the slider once they navigate to it.