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.

Better keyboard support for QSelect

See original GitHub issue

Is your feature request related to a problem? Please describe. Implement more typical <select> keyboard behaviour for QSelect.

Describe the solution you’d like

  1. If an item is highlighted in the options pop-up, <kbd>Tab</kbd> should input the highlighted item. This helps when quickly tabbing through form fields.

  2. (if use-input is not enabled) <kbd>Space</kbd> should open the options pop-up. This is more consistent with select than <kbd>Enter</kbd>. Users may be more apprehensive about pressing <kbd>Enter</kbd>, as it is commonly used to submit forms.

  3. Keyboard jumping to options without use-input

    1. Type a letter to jump to first option starting with that letter
    2. Type additional letters to further jump to other options (e.g. <kbd>C</kbd>, <kbd>O</kbd> would jump to the first item starting with CO (with timeout to clear the buffer)
    3. Same letter multiple times jumps to next item starting with letter (e.g. <kbd>B</kbd>, <kbd>B</kbd>, <kbd>B</kbd> would jump to third item starting with B.

    This is a pain point compared to a standard <select> because you can’t quickly jump to an item with keyboard. use-input can help but don’t always want the overhead of implementing autocomplete filters or hiding items for simple selects. For this one, the type-jumping could possibly happen without even opening the pop-up like a standard <select> but it would also be ok if it did open because that’s consistent with arrow keys already opening the pop-up (which they do not do in standard <select>.

Describe alternatives you’ve considered Capturing keyboard events with custom logic (it appears QSelect emits keyboard events, though this does not appear to be in the docs?).

Additional context QSelect is generally awesome! But I do find myself getting tripped up by these.

Codepen to compare QSelect with <select>: https://codepen.io/gordonblahut/pen/zYOeVYa

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rstoenescucommented, Oct 15, 2019

Improved keyboard navigation for QSelect will be available in “quasar” v1.2.2

1reaction
metalsadmancommented, Sep 26, 2019

maybe it’s time to spawn other functionalities into their own component imo. atm qselect has quite a huge api, it’s doing so much. maybe QSelect, as the name suggest should just do what a native select does, while others into autocomplete etc…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Select | Quasar Framework
The QSelect Vue component has two types of selection - single or multiple. This component opens up a menu for the selection list...
Read more >
If You Know These Keyboard Shortcuts, You Won't Need a ...
If you're selecting text, meanwhile, use Shift and an arrow key; to move one word at a time, use Shift+Ctrl and an arrow...
Read more >
Keyboard shortcut for quickselect or filter option? - AutoCAD
You can use ALIASEDIT to add your alias to the acad.pgp file. QSELECT is the command name for the Filter Dialog. Good luck,....
Read more >
Hmm. Best played with controller or mouse & keyboard?
And I love my 8Bitdo - I have rumble support for Switch emulation, can set it to be recognized as a PS, Xbox,...
Read more >
Selecting Objects with the Quick Select (QSELECT) Command ...
If you are new to AutoCAD and are looking for a book to help expand your knowledge, please check out my book, A...
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