콘텐츠로 이동

unregister

이 콘텐츠는 아직 번역되지 않았습니다.

Module @netwiv/api/plugins/global-shortcut · Kind Function

import { unregister } from '@netwiv/api/plugins/global-shortcut';

Unregister a global shortcut or a list of shortcuts.

function unregister(shortcuts: string | string[]): Promise<void>
import { unregister } from '@netwiv/api/plugins/global-shortcut';
// unregister a single hotkey
await unregister('CmdOrControl+Space');
// or unregister multiple hotkeys at the same time
await unregister(['CmdOrControl+Space', 'Alt+A']);

Upstream since 2.0.0


Descriptions come from the pinned @tauri-apps/plugin-global-shortcut@2.3.2 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.