Files
figcraft/docs
Denis Gomes 97e9ada42a M1: Shift with a double-click goes deeper and keeps the rest of the selection
A double-click selects a level deeper, and it replaced the selection
with that one layer whatever the modifiers. With a layer in one artboard
selected, a Shift double-click on a neighbouring artboard left only the
neighbour's layer selected, so layers nested in different artboards
couldn't be selected together, as Figma allows.

With Shift (and not Cmd/Ctrl) the double-click keeps the rest of the
selection: the selected layer it goes into is replaced by the layer a
level below, and nothing else changes. Where nothing is selected on that
branch, it goes one level into the layer beside the selection: the one
just inside the deepest layer the branch shares with a selected layer,
or the layer a click would select when that is deeper. Starting from the
click target alone picked a layer that holds the selected one when both
sit in the same artboard (a row of a list beside the selected row's
label), and the selection collapsed to it.

The double-click's own two clicks have already toggled that layer in and
out with Shift by then, so the press handler keeps the selection from
before each of the last two presses, and the double-click works from the
older one.

It uses those selections only when both presses were made with the Move
or Scale tool where the double-click lands, and each double-click uses
them once. Otherwise (both presses arrived in one frame with the
double-click, or the clicks were made with the Hand) it works from the
current selection, so a selection made since earlier presses stays.
2026-11-19 16:02:29 -05:00
..