Tutorial: globalhotkey.unregister

globalhotkey.unregister

Unregisters a global hotkey with the operating system. This method will unregister all existing registrations of the hotkey within the application.

Raises the unregistered event.

Example

const hotkey = 'CommandOrControl+X';

fin.desktop.GlobalHotkey.unregister(hotkey, () => {
    console.log('Success');
}, (r, err) => {
    console.log('Error unregistering the hotkey', err);
});