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

Shift + Click range selection improvements #439

Merged
merged 4 commits into from
Feb 13, 2015

Conversation

Tyf0x
Copy link
Contributor

@Tyf0x Tyf0x commented Nov 27, 2014

IMPORTANT: Based on the code in the pull request #435.

Changes:

-> Now able to select/deselect ranges
-> The range is based on the previously active checkbox. (i.e: the user clicks a checkbox no 1 then checkbox no 5. The interval will be [1,5].)
-> The range new state (selected or deselected) depends on the last option clicked new value. Example: If the checkbox is Shift-clicked and becomes selected, the whole range will be too.
-> Improved the range select speed tremendously by only notifying the select for the "change" event once the whole range finished changing and manually doing the selection or deselection.

-> See https://bugzilla.mozilla.org/show_bug.cgi?id=559506
-> Removed the javascript:void(0) href for anchor elements in the multiselect dropdown
-> Added a tabindex = 0 to keep the anchors focus-able
-> Added code to remove any text selection when using shift+click
-> Handles the checkbox selection manually when done using shift+click on its label
…-selection **

-> Now able to select/deselect ranges
-> The range is based on the previously active checkbox. (i.e: the user clicks a checkbox no 1 then checkbox no 5. The interval will be [1,5].)
-> The range new state (selected or deselected) depends on the last option clicked new value. Example: If the checkbox is Shift-clicked and becomes selected, the whole range will be too.
-> Improved the range select speed tremendously by only notifying the select for the "change" event once the whole range finished changing and manually doing the selection or deselection.
@Tyf0x Tyf0x mentioned this pull request Nov 27, 2014
davidstutz added a commit that referenced this pull request Feb 13, 2015
Shift + Click range selection improvements. Fixes #431.
@davidstutz davidstutz merged commit 614bd4b into davidstutz:master Feb 13, 2015
@Tyf0x Tyf0x deleted the shift-select-improvement branch February 13, 2015 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants