question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make colorpicker keyboard-friendly

See original GitHub issue

Now that we can open with Ctrl-K it would be nice if the whole component could be usable with just the keyboard.

I suggest:

  • make it possible to tab between inputs. (currently, if I’m in RGB mode and press tab, it changes the mode and blurs the input 😦
  • make the sliders focusable and use arrow keys to change value. Maybe even shift+arrow for fine adjustment
  • make the gradient focusable and editable with keyboard.
  • listen for Esc and Enter and use those to close dialog and return focus to CM.

Thanks. 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
easylogiccommented, Apr 21, 2017

@teleclimber

https://store.jui.io/v2/view.php?id=58f8d68594976c182b7b23c7

I am refactoring for keyboard features.

Tab key is change selection area. Arrow keys is change real value for selection area.

0reactions
Mottiecommented, Oct 13, 2017

The “HEX” mode works great if you have the outer wrapper focused, but if you focus the hex input, the movement and color selection is awkward.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mobile-friendly & Keyboard Accessible Color Picker - Alwan
A lightweight, touch-enabled, and keyboard-accessible color picker component made in pure Vanilla JavaScript.
Read more >
Accessible Color Pickers - DEV Community ‍ ‍
So, I set out to create a Color Picker with range-sliders, which are both touch- and keyboard-friendly (using arrow-keys).
Read more >
Just Color Picker 5.7 - best free colour tool for Windows and ...
Free portable colour picker and colour editor for webmasters, photographers, graphic designers and digital artists. Works on Mac and Windows PC, ...
Read more >
Assign a Keyboard Shortcut To The Foreground Color Picker
Press Ctrl Alt Shift K (Mac: Command Option Shift K). Then choose “Tools” and under “Shortcuts For” scroll down until you see “Foreground...
Read more >
Keyboard Shortcut for the Foreground Color Picker | Facebook
shortcut to the Foreground Color Picker. ... Option Shift K). ... then click on it to assign a keyboard shortcut. Article: http://bit.ly/2jqjmzu.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found