MCPcopy Create free account
hub / github.com/gitify-app/gitify / applyKeyboardShortcut

Function applyKeyboardShortcut

src/renderer/utils/system/comms.ts:112–120  ·  view source on GitHub ↗
(payload: {
  enabled: boolean;
  accelerator: string;
})

Source from the content-addressed store, hash-verified

110 * @param payload - Whether the shortcut is enabled and the Electron accelerator string.
111 */
112export async function applyKeyboardShortcut(payload: {
113 enabled: boolean;
114 accelerator: string;
115}): Promise<{ success: boolean }> {
116 return await window.gitify.applyKeyboardShortcut({
117 enabled: payload.enabled,
118 keyboardShortcut: payload.accelerator,
119 });
120}
121
122/**
123 * Updates the tray icon color based on the number of unread notifications.

Callers 2

comms.test.tsFile · 0.90
AppProviderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected