ad-aures_castoPod/resources/js/_modules/HotKeys.ts
Yassine Doghri 0961987276
fix(player): load icons locally instead of relying on vimejs picking them from third party scripts
- use codeigniter-vite to manage static resources
- update dependencies to latest

closes #551
2026-02-18 22:40:18 +01:00

14 lines
335 B
TypeScript

import { install } from "@github/hotkey";
const HotKeys = (): void => {
const hotkeys: NodeListOf<HTMLElement> =
document.querySelectorAll("[data-hotkey]");
// Install all the hotkeys on the page
for (let i = 0; i < hotkeys.length; i++) {
const hotkey = hotkeys[i];
install(hotkey);
}
};
export default HotKeys;