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.
This commit is contained in:
parent
79cd3433f5
commit
18969e61be
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue