Skip to content

Conversation

@egramond
Copy link
Contributor

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.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Apr 18, 2022
@ds84182 ds84182 requested a review from gspencergoog April 19, 2022 00:07
// 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(),
Copy link
Contributor

@gspencergoog gspencergoog Apr 19, 2022

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.

Copy link
Contributor Author

@egramond egramond Apr 19, 2022

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.

@egramond egramond changed the title Updating Slider Widget to allow up and down arrow keys to navigate out of the slider on directional navigation mode. Updating the Slider Widget to allow up and down arrow keys to navigate out of the slider on directional navigation mode. Apr 20, 2022
@egramond
Copy link
Contributor Author

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.

@egramond egramond requested a review from gspencergoog April 22, 2022 18:27
@egramond egramond changed the title Updating the Slider Widget to allow up and down arrow keys to navigate out of the slider on directional navigation mode. Updating the Slider Widget to allow up and down arrow keys to navigate out of the slider. May 5, 2022
engine-flutter-autoroll and others added 22 commits May 4, 2022 17:52
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
* 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
engine-flutter-autoroll and others added 21 commits May 4, 2022 17:52
…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
@egramond
Copy link
Contributor Author

egramond commented May 5, 2022

ok so I screwed up this PR beyond repair with some git upstream command. I'll start a fresh one.

@egramond egramond closed this May 5, 2022
@egramond egramond deleted the slider-nav-branch branch May 5, 2022 01:16
@gspencergoog
Copy link
Contributor

We've all been there. :-) Just let me know what the new one is and I'll review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.