View as Markdown

API reference: @salmonui/data-grid/engine

keyComboFromEventfunction

import { keyComboFromEvent } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid/engine/keyboard.

function keyComboFromEvent(event: KeyEventLike): string;

Canonical combo of a key event. Letters are read from code when Alt is held (macOS Option produces composed characters: Alt+J is ∆) and from key otherwise, so Ctrl+A follows the keyboard layout.