ChemPal Documentation - v1.7.0
    Preparing search index...

    Function getHotkeyConfigs

    • Returns the raw list of hotkey configs loaded from config.json. Useful for the help modal or any UI that needs to enumerate the bindings.

      Returns HotkeyConfig[]

      Array of hotkey configs, in declaration order.

      const hotkeys = getHotkeyConfigs();
      hotkeys.forEach((h) => console.log(h.id, h.description));
      export function getHotkeyConfigs(): HotkeyConfig[] {
      // Trusted static config: JSON import infers literal types that don't widen to
      // HotkeyConfig[]; shape is validated by config.json's authored structure.
      return hotkeysConfig.bindings as HotkeyConfig[];
      }