Skip to content

Shift + Click range selection improvements#439

Merged
davidstutz merged 4 commits intodavidstutz:masterfrom
Tyf0x:shift-select-improvement
Feb 13, 2015
Merged

Shift + Click range selection improvements#439
davidstutz merged 4 commits intodavidstutz:masterfrom
Tyf0x:shift-select-improvement

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
-> Fixed a failure on test for davidstutz#405 due to the code changes
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