Resolves the selection action implied by the current modifier-key state.
Precedence is evaluated in the following order:
Shift returns 'remove'.
Ctrl or Meta returns 'add'.
If no modifier is active, defaultAction is returned.
This lets different call sites share the same modifier semantics while still
choosing their own non-modified default, such as 'replace' for generic
selection flows or 'add' for pointer interactions that should preserve the
existing selection set.
Resolves the selection action implied by the current modifier-key state.
Precedence is evaluated in the following order:
Shiftreturns'remove'.CtrlorMetareturns'add'.defaultActionis returned.This lets different call sites share the same modifier semantics while still choosing their own non-modified default, such as
'replace'for generic selection flows or'add'for pointer interactions that should preserve the existing selection set.