setSummonHotkey(hotkey: string | null)
Set the current user's keyboard shortcut ("hotkey") for opening Spotlight. Primarily used for accessibility.
Examples
Set shortcut to shift+k
window.CommandBar.open("shift+k");
Disable shortcut completely
window.CommandBar.open(null);
Method parameters
Property | Type | Description |
---|---|---|
hotkey | string | number | The new shortcut to open Spotlight for this user only |