From 18969e61be4f7772890be8fbf74a05d7b9e44fe1 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 26 Feb 2026 23:48:39 +0100 Subject: [PATCH] chore(deps): remove @github/hotkey dependency Remove @github/hotkey package, its patch file, and the patchedDependencies entry since all shortcut handling is now done by the custom @/helpers/shortcut module. --- frontend/package.json | 4 +-- frontend/patches/@github__hotkey@3.1.1.patch | 28 -------------------- frontend/pnpm-lock.yaml | 13 --------- 3 files changed, 1 insertion(+), 44 deletions(-) delete mode 100644 frontend/patches/@github__hotkey@3.1.1.patch diff --git a/frontend/package.json b/frontend/package.json index ea86f2fc5..1c7280995 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -56,8 +56,7 @@ "@fortawesome/free-regular-svg-icons": "7.1.0", "@fortawesome/free-solid-svg-icons": "7.1.0", "@fortawesome/vue-fontawesome": "3.1.3", - "@github/hotkey": "3.1.1", - "@intlify/unplugin-vue-i18n": "11.0.3", +"@intlify/unplugin-vue-i18n": "11.0.3", "@kyvg/vue3-notification": "3.4.2", "@sentry/vue": "10.36.0", "@tiptap/core": "3.17.0", @@ -159,7 +158,6 @@ }, "pnpm": { "patchedDependencies": { - "@github/hotkey@3.1.1": "patches/@github__hotkey@3.1.1.patch" }, "onlyBuiltDependencies": [ "@parcel/watcher", diff --git a/frontend/patches/@github__hotkey@3.1.1.patch b/frontend/patches/@github__hotkey@3.1.1.patch deleted file mode 100644 index da4b16547..000000000 --- a/frontend/patches/@github__hotkey@3.1.1.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff --git a/dist/index.js b/dist/index.js -index b6e6e0a6864cb00bc085b8d4503a705cb3bc8404..0466ef46406b0df41c8d0bb9a5bac9eabf4a50de 100644 ---- a/dist/index.js -+++ b/dist/index.js -@@ -368,10 +368,12 @@ const sequenceTracker = new SequenceTracker({ - function keyDownHandler(event) { - if (event.defaultPrevented) - return; -- if (!(event.target instanceof Node)) -+ const target = event.explicitOriginalTarget || event.target; -+ if (target.shadowRoot) - return; -- if (isFormField(event.target)) { -- const target = event.target; -+ if (!(target instanceof Node)) -+ return; -+ if (isFormField(target)) { - if (!target.id) - return; - if (!target.ownerDocument.querySelector(`[data-hotkey-scope="${target.id}"]`)) -@@ -385,7 +387,6 @@ function keyDownHandler(event) { - sequenceTracker.registerKeypress(event); - currentTriePosition = newTriePosition; - if (newTriePosition instanceof Leaf) { -- const target = event.target; - let shouldFire = false; - let elementToFire; - const formField = isFormField(target); diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index 188cb00c7..e18ecf425 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -10,11 +10,6 @@ overrides: basic-ftp: 5.2.0 serialize-javascript: ^7.0.3 -patchedDependencies: - '@github/hotkey@3.1.1': - hash: 145ab3233cbcd3bc934b4961cd8710e2b15e4ae5dd20862a8d1d6621d7f9d4a8 - path: patches/@github__hotkey@3.1.1.patch - importers: .: @@ -34,9 +29,6 @@ importers: '@fortawesome/vue-fontawesome': specifier: 3.1.3 version: 3.1.3(@fortawesome/fontawesome-svg-core@7.1.0)(vue@3.5.27(typescript@5.9.3)) - '@github/hotkey': - specifier: 3.1.1 - version: 3.1.1(patch_hash=145ab3233cbcd3bc934b4961cd8710e2b15e4ae5dd20862a8d1d6621d7f9d4a8) '@intlify/unplugin-vue-i18n': specifier: 11.0.3 version: 11.0.3(@vue/compiler-dom@3.5.27)(eslint@9.39.3(jiti@2.4.2))(rollup@4.59.0)(typescript@5.9.3)(vue-i18n@11.2.8(vue@3.5.27(typescript@5.9.3)))(vue@3.5.27(typescript@5.9.3)) @@ -1679,9 +1671,6 @@ packages: '@ghostery/adblocker@2.5.0': resolution: {integrity: sha512-CcmWiTLKxDqYiTlPyOAWr3xeZYXjWlpu6UOCDkk33k0w7jTgVrdvwbXf8Tv4XE0m3uNX6Idfj4H+Umv8L3AiUw==} - '@github/hotkey@3.1.1': - resolution: {integrity: sha512-H30I6XDO3gFSgLuEuHoMBRZG9c3uCKNdAcYklL1FaZDPdU1bXfgjnpzGDPcUr0U6eGQ+T3XLY9slatwZYWL1dA==} - '@hapi/address@5.1.1': resolution: {integrity: sha512-A+po2d/dVoY7cYajycYI43ZbYMXukuopIsqCjh5QzsBCipDtdofHntljDlpccMjIfTy6UOkg+5KPriwYch2bXA==} engines: {node: '>=14.0.0'} @@ -8264,8 +8253,6 @@ snapshots: '@remusao/smaz': 1.10.0 tldts-experimental: 6.1.41 - '@github/hotkey@3.1.1(patch_hash=145ab3233cbcd3bc934b4961cd8710e2b15e4ae5dd20862a8d1d6621d7f9d4a8)': {} - '@hapi/address@5.1.1': dependencies: '@hapi/hoek': 11.0.7