quasar icon indicating copy to clipboard operation
quasar copied to clipboard

[Request] QSelect add key events

Open fsgiudice opened this issue 9 years ago • 12 comments

It could be useful to handle key events to use keyboard on desktop version. On forms I would like to use keys to move between fields and also on a select (i.e. press enter to submit form, currently handled on simple qinput fields but not on qselect field, but also move between qselect values using up and down keys).

fsgiudice avatar Sep 21 '17 16:09 fsgiudice

Notice that you can use TAB to move between input fields. QSelect indeed needs some extra code to handle moving between its values. And this is on the roadmap.

rstoenescu avatar Sep 21 '17 17:09 rstoenescu

Hi @rstoenescu, about TAB key I saw, but other key events are necessary for keyboard use. Thank you.

fsgiudice avatar Sep 21 '17 19:09 fsgiudice

In addition to handle moving through values, it needs the handlers for selecting a value by Enter or Space, and for opening the list itself (usually F4 or Ctrl+↓)

igorgo avatar Sep 30 '17 05:09 igorgo

Yes, all this is available in Autocomplete. What is needed is a wrapper so it can be used with multiple components, like QSelect.

rstoenescu avatar Sep 30 '17 08:09 rstoenescu

@rstoenescu is this on the roadmap for v.15?

dboune avatar Nov 19 '17 21:11 dboune

Available in 0.15.1. Forgot to close this.

rstoenescu avatar Feb 24 '18 23:02 rstoenescu

@rstoenescu Now you cannot input a space character when using the autocomplete control. I think that's a bug.

working: http://v0-14.quasar-framework.org/components/autocomplete.html NOT working: http://quasar-framework.org/components/autocomplete.html

wc-matteo avatar Feb 26 '18 17:02 wc-matteo

@wc-matteo Supply a jsFiddle and add instructions to reproduce if you feel there's any bug. Thanks!

rstoenescu avatar Feb 26 '18 17:02 rstoenescu

You can see the issue just using the documentation examples. Try to input a space character in the autocomplete input. It works with 0.14 and it doesn't with the latest.

wc-matteo avatar Feb 26 '18 17:02 wc-matteo

Open up a new ticket pls. Reproduced and root caused it. Thanks.

rstoenescu avatar Feb 26 '18 17:02 rstoenescu

@wc-matteo opened https://github.com/quasarframework/quasar/issues/1652 and pushed fix then closed it. Will be available in 0.15.4

rstoenescu avatar Feb 26 '18 18:02 rstoenescu

Thank you very much! Sorry, I couldn't open it myself.

wc-matteo avatar Feb 27 '18 08:02 wc-matteo