FreeGridv1.6.0한국어

Keyboard

Click a cell or tab into the grid, then:

Live demoKeyboard navigation

Arrow keys, Tab, Home/End and Page keys move the focused cell.

Code for this demo
import { createGrid } from '@freegridjs/core';
import { demoColumns, makeRows } from '../data';
import { text, tr, type DemoContext } from '../ui';

export default function mount(ctx: DemoContext) {
  const { lang } = ctx;
  const grid = createGrid(ctx.host, { columns: demoColumns(lang, 10), data: makeRows(10_000, 10), rowSelection: 'multiple', locale: lang });

  grid.on('focusChange', e => ctx.log(`focusChange → row ${e.rowIndex + 1}, ${e.colId}`));
  grid.on('cellDoubleClick', e => ctx.log(`cellDoubleClick → ${e.colId}: ${String(e.value)}`));

  text(ctx, tr(lang, {
    en: 'Click a cell, then use ← ↑ → ↓, Tab, Home/End, Ctrl+Home/End, PageUp/PageDown and Space.',
    ko: '셀을 클릭한 뒤 ← ↑ → ↓, Tab, Home/End, Ctrl+Home/End, PageUp/PageDown, Space를 눌러 보세요.',
  }));
  return grid;
}

Click a cell or tab into the grid, then:

KeyAction
← ↑ → ↓Move the focused cell.
Tab / Shift+TabNext / previous cell, wrapping rows; leaves the grid at the ends.
Home / EndFirst / last column.
Ctrl+Home / Ctrl+EndFirst / last cell.
PageUp / PageDownOne screen up / down.
Shift + ← ↑ → ↓ / Home / End / PageExtend the cell range.
Ctrl+ASelect every cell.
Ctrl+C / Ctrl+VCopy to / paste from Excel (TSV).
Ctrl+FFind in the grid.
Shift+F10 / ContextMenuOpen the right-click menu.
Enter / F2 / typingStart editing an editable cell.
Enter / Tab / Esc (editing)Save and move down / save and move right / cancel.
DeleteClear editable cells.
Ctrl+Z / Ctrl+YUndo / redo.
SpaceToggle the focused row’s selection.
EscClose the column menu or chooser.