Tutorial: globalhotkey.isRegistered

globalhotkey.isRegistered

Checks if a given hotkey has been registered.

Example

const hotkey = 'CommandOrControl+X';

fin.desktop.GlobalHotkey.isRegistered(hotkey, registered => {
    console.log(`hotkey ${hotkey} is registered ? ${registered}`);
}, (r, err) => {
    console.log('Error unregistering the hotkey', err);
});