Parameters for keyboard.registerHotkey.
Register a system-wide hotkey. When it is pressed the registering window receives keyboard:hotkey with { id, key, action }, whichever program has the focus. The combination must hold Ctrl, Alt or Win, except a media key alone; Ctrl+A, C, V, X, Y, Z, Ctrl+Shift+Z, Alt+F4, Alt+Tab, Alt+Space and Ctrl+Esc are refused too, all with INVALID_PARAMS. A combination a window of this component already holds fails with OPERATION_FAILED naming that window; one Windows refuses, because another program or a global foobar2000 shortcut holds it, fails with OPERATION_FAILED and the Windows error in details.win32Error. The hotkey is released when the registering page navigates or reloads and when its window closes.
Parameters for
keyboard.registerHotkey. Register a system-wide hotkey. When it is pressed the registering window receiveskeyboard:hotkeywith{ id, key, action }, whichever program has the focus. The combination must hold Ctrl, Alt or Win, except a media key alone; Ctrl+A, C, V, X, Y, Z, Ctrl+Shift+Z, Alt+F4, Alt+Tab, Alt+Space and Ctrl+Esc are refused too, all withINVALID_PARAMS. A combination a window of this component already holds fails withOPERATION_FAILEDnaming that window; one Windows refuses, because another program or a global foobar2000 shortcut holds it, fails withOPERATION_FAILEDand the Windows error indetails.win32Error. The hotkey is released when the registering page navigates or reloads and when its window closes.