import { keyboard } from '@oliveai/ldk';
// The hotkey to monitor to initiate callback.
// There are more modifiers to choose, please visit our documentation
// https://open-olive.github.io/loop-development-kit/ldk/javascript/interfaces/hotkey.html
// The callback function called when the specified hotkey is pressed or released.
// Calls callback function when the specified hotkey is pressed or released.
const callback = (pressed) => {
console.log('Hotkey pressed', 'response', pressed);
// Function that is called when listenHotkey() detects hotkeys being pressed.
const listener = keyboard.listenHotkey(hotkeys, pressed);
// Clears the listener function