rework approval buttons and add hotkey for base approval

This commit is contained in:
2024-01-20 11:06:27 -08:00
parent 46b8d810c5
commit 7fdb336c79
9 changed files with 73 additions and 45 deletions

@ -21,15 +21,16 @@
throw(`Link target is not a string or a function: ${target}`)
}
}
function handleHotkey(event) {
if (!hotkey) return;
if (ctrl && !event.ctrlKey) return;
if (alt && !event.altKey) return;
if (shift && !event.shiftKey) return;
if (event.key === hotkey) {
if (
hotkey === event.key
&& ctrl === event.ctrlKey
&& alt === event.altKey
&& shift === event.shiftKey
) {
console.log({hotkey, ctrl, alt, shift});
click();
}
}