Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use Tab as select key #230

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aetna-softwares
Copy link

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant