Veylo Docs

HomeDocsKeyboard and mouse

Keyboard and mouse

With veylo.js loaded, the components below behave like their desktop equivalents. Nothing needs configuring: the behaviour attaches to the markup.

Selecting

Lists (.veylo-list.multi) and tables (data-veylo-select, or ="one" for single selection) share one model:

InputResult
ClickSelect one item
Ctrl+clickToggle one item
Shift+clickSelect a range from the anchor
DragSweep a range
ArrowsMove the cursor and select
Shift+arrowsExtend the range
Ctrl+arrows, then SpaceMove without selecting, then toggle
Ctrl+A / EscSelect all / clear
Ctrl+CCopy (tables copy as tab-separated text)
Type lettersJump to a matching item
Enter or double-clickFires veylo-open

Other components

WhereKeys
.veylo-treeArrows; Left and Right collapse, expand, go to parent or child; * expands a branch; Ctrl+Left and Ctrl+Right all; Ctrl+click a node for the whole branch
details.veylo-dd menusClick-off, Esc and Tab close; arrows, Home and End move; Enter picks; the underlined letter jumps; Left and Right switch menus; hovering switches while one is open
data-veylo-contextRight-click or Shift+F10 opens the menu at the pointer
Tabs and .veylo-segLeft, Right, Home, End
.veylo-accsArrows move; Left and Right close and open; Ctrl+click toggles all; data-veylo-one makes it exclusive
.veylo-calArrows; Home and End; PgUp and PgDn (Shift for a year); Ctrl+arrows; T for today; Enter
Number and range inputsShift ×10, Ctrl ×100, Alt ×0.1 (range: Shift only)
.veylo-splitArrows move 16px, Shift 64px, Ctrl 4px; Home and End collapse; Enter or double-click resets
Colour pickerArrows on the square and the hue strip; Shift ×10
DialogBackdrop click and Esc close; Enter hits button.def
Sortable headerClick, Enter or Space sorts; Ctrl+click resets the order
Anywhere/ focuses the search box; Shift+click on checkboxes ticks a range

Click-off

Menus, popups, colour pickers and context menus close when you click outside them or press Esc, so you never have to hunt for a close button.