Class DndKeyboardSensor
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
dnd-kit's KeyboardSensor: a start key on a draggable that holds keyboard focus, or contains the element
that does, starts a drag; until an end or cancel key, each other key the CoordinateGetter
answers moves it. The default getter moves 25 px per arrow key.
public sealed class DndKeyboardSensor : DndSensor
- Inheritance
-
objectDndKeyboardSensor
Constructors
Properties
Methods
- DefaultCoordinates(in DndKeyboardMove)
dnd-kit's
defaultKeyboardCoordinateGetter: 25 px per arrow key.
- TryActivate(EventBase, DndSensorActivation)
Decides whether
evtstarts this sensor's gesture on the draggableactivationnames. Return true to claim it; the drag itself starts when the sensor calls Start(Vector2, Action?), now or after a constraint of its own.