Documentation
    Preparing search index...

    Keyboard shortcut definition for development server interactions

    const shortcut: KeyboardShortcut = {
    key: 'r',
    description: 'restart server',
    handler: () => server.restart()
    }
    interface KeyboardShortcut {
        key: string;
        description: string;
        handler: () => void;
    }
    Index

    Properties

    key: string

    The keyboard key that triggers this shortcut

    description: string

    Human-readable description of what this shortcut does

    handler: () => void

    Function to execute when the shortcut is triggered