ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Type Alias KeyBinding

    KeyBinding: string | { mac: string; other: string }

    A platform-aware key binding. Either a single string shared across platforms, or an object with separate mac / other bindings.

    Supported tokens (case-insensitive, joined by +):

    • mod - meta (⌘) on macOS, ctrl on Windows/Linux
    • meta / cmd / command - meta key
    • ctrl / control - control key
    • alt / option - alt key
    • shift - shift key
    • The final token is the key itself (r, s, ?, enter, escape, ...)
    export type KeyBinding = string | { mac: string; other: string };