Typix LogoTypix
Extensions

Short Cuts

Keyboard shortcuts for every formatting action

Wires up the standard keyboard shortcuts: ⌘B bold, ⌘I italic, ⌘U underline, ⌘⇧S strikethrough, ⌘E code, ⌘K link, plus block-level shortcuts.

Install

pnpm add @typix-editor/extension-short-cuts

Live demo

Shortcuts

import { SHORTCUTS } from "@typix-editor/extension-short-cuts";

The SHORTCUTS constant is the full default mapping. Use it as a base for custom shortcuts via configExtension.

Config

OptionTypeDefaultDescription
shortcutsPartial<Record<ShortcutName, string>>built-inOverride key combos per shortcut name.
enableDefaultsbooleantrueDisable to opt-out of built-in shortcuts.

Custom shortcut

import { configExtension } from "@typix-editor/core";

configExtension(ShortCutsExtension, {
  shortcuts: {
    bold: "mod+shift+b",  // override ⌘B
  },
});

On this page