Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

1.1 KB
Raw Blame
export type HotkeyId =
  | 'commandPalette'
  | 'deleteAndRegenerateMessage'
  | 'deleteLastMessage'
  | 'editMessage'
  | 'findInTopic'
  | 'navigateToChat'
  | 'nextTab'
  | 'openChatSettings'
  | 'prevTab'
  | 'openHotkeyHelper'
  | 'openTaskFilter'
  | 'regenerateMessage'
  | 'saveDocument'
  | 'saveTopic'
  | 'search'
  | 'showApp'
  | 'switchAgent'
  | 'switchTab'
  | 'toggleFavorite'
  | 'toggleLeftPanel'
  | 'toggleRightPanel'
  | 'toggleTerminalPanel';

export type HotkeyGroupId = 'conversation' | 'essential';

export type HotkeyScopeId = 'chat' | 'files' | 'global' | 'image';

export interface HotkeyItem {
  group: HotkeyGroupId;
  id: HotkeyId;
  keys: string;
  nonEditable?: boolean;
  scopes?: HotkeyScopeId[];
}

export type HotkeyRegistration = HotkeyItem[];

export type DesktopHotkeyId = 'openSettings' | 'quickChat' | 'quickComposer' | 'showApp';

export interface DesktopHotkeyItem {
  id: DesktopHotkeyId;
  keys: string;
  nonEditable?: boolean;
}

export type DesktopHotkeyConfig = Record<DesktopHotkeyId, string>;

export type HotkeyI18nTranslations = Record<
  HotkeyId,
  {
    desc?: string;
    title: string;
  }
>;