Table of Contents

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
object
DndKeyboardSensor

Constructors

DndKeyboardSensor(DndKeyboardCodes?, DndKeyboardCoordinateGetter?)

Properties

Codes
CoordinateGetter

Methods

DefaultCoordinates(in DndKeyboardMove)

dnd-kit's defaultKeyboardCoordinateGetter: 25 px per arrow key.

TryActivate(EventBase, DndSensorActivation)

Decides whether evt starts this sensor's gesture on the draggable activation names. Return true to claim it; the drag itself starts when the sensor calls Start(Vector2, Action?), now or after a constraint of its own.