jQuery-Selectric icon indicating copy to clipboard operation
jQuery-Selectric copied to clipboard

Don't use Tab as select key

Open aetna-softwares opened this issue 6 years ago • 0 comments

Use Tab as select key has 2 problems : 1/ normal select : enter the select, use arrow to select an option, use TAB to go out the option is selected (this could be discussed but why not) then go back to the field use arrow to go to the selected option and use TAB to go out : the option is deselected. This is obviously not want the user want to do 2/ multiple select : the problem here is that the code assume that the selected option is the highlighted value but in case of multiple it is an array of indexes and then the select() code crash because it assume that only an index is given

I think that Enter/Space is enough for selection. Removing Tab from select keys remove these side effect and I feel the behaviour quite confortable

aetna-softwares avatar Jun 28 '18 14:06 aetna-softwares