Keyboard

Everything a swipe does, without a pointer.

Tab to a row below, then press F to flag it, Delete to remove it, or the left arrow to reveal its actions.

Design review
Send invoices
Book team lunch

Keys#

These work while a row's Tuckaway.Content has focus.

KeyDoes
An action's shortcutRuns that action
Left and right arrowsReveals a side, or closes the open one
EscapeCloses the row
EnterClicks Tuckaway.Content

Once a side is revealed, its buttons can be tabbed to. Escape from a button closes the row and puts focus back on Tuckaway.Content.

Shortcuts#

Give an action a key, or an array of keys. They're matched without regard to case.

<Tuckaway.Action shortcut={["Delete", "Backspace"]} onSelect={remove} commit>
	Delete
</Tuckaway.Action>

Holding a key doesn't run the action again, and presses with Ctrl, Cmd or Alt are left to the browser. The keys are published on aria-keyshortcuts, but say what they do in an aria-label too.

Focus#

When a commit removes the focused row, focus moves to the next row, or the previous one if it was the last.