#5771 closed enhancement (wontfix)
Selectable: Meta AND Shift key should allow multiple non-adjacent selections
Reported by: | Alfgar | Owned by: | |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | ui.selectable | Version: | 1.8.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
To follow more standard Apple Finder & Windows Explorer behavior.
Code change is trivial:
In .selectable's definition, replace:
event.metaKey
and (for minified version)
c.metaKey
by:
(event.metaKey || event.shiftKey)
and
(c.metaKey [||] c.shiftKey)
, respectively, with parenthesis for proper boolean logic.
Note: See
TracTickets for help on using
tickets.
This follows Apple Finder behavior (do non-adjacent selection whether Meta or Shift) but it doesn't follow Windows Explorer behavior (do non-adjacent selections with Meta, do range selection with Shift). We'll be implementing the latter as it's much more powerful to do two things with two keys instead of one thing with two keys.
It's all spec'd out here: http://wiki.jqueryui.com/Selectable