Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Upgrade react-hotkeys-hook dependency

Blue Mouse20e00dfad6be
diff --git a/web/app/pages/Project/View/ViewProject.tsx b/web/app/pages/Project/View/ViewProject.tsx
index 15536fa70..312354666 100644
--- a/web/app/pages/Project/View/ViewProject.tsx
+++ b/web/app/pages/Project/View/ViewProject.tsx
@@ -1093,7 +1093,7 @@ const ViewProjectContent = () => {
// 'Keyboard shortcuts' help modal
useHotkeys('shift+?', () => {
setIsHotkeysHelpOpened((val) => !val)
- })
+ }, { useKey: true })
// 'Tabs switching' shortcuts
useHotkeys(SHORTCUTS_TABS_LISTENERS, ({ key }) => {
diff --git a/web/package-lock.json b/web/package-lock.json
index 02c9cf360..ad4ee6ccc 100644
--- a/web/package-lock.json
+++ b/web/package-lock.json
@@ -41,7 +41,7 @@
"marked": "^17.0.4",
"react": "^19.2.4",
"react-dom": "^19.2.4",
- "react-hotkeys-hook": "^4.6.1",
+ "react-hotkeys-hook": "^5.2.4",
"react-i18next": "^17.0.2",
"react-leaflet": "^5.0.0",
"react-qr-code": "^2.0.18",
@@ -8199,13 +8199,13 @@
}
},
"node_modules/react-hotkeys-hook": {
- "version": "4.6.2",
- "resolved": "https://registry.npmjs.org/react-hotkeys-hook/-/react-hotkeys-hook-4.6.2.tgz",
- "integrity": "sha512-FmP+ZriY3EG59Ug/lxNfrObCnW9xQShgk7Nb83+CkpfkcCpfS95ydv+E9JuXA5cp8KtskU7LGlIARpkc92X22Q==",
+ "version": "5.2.4",
+ "resolved": "https://registry.npmjs.org/react-hotkeys-hook/-/react-hotkeys-hook-5.2.4.tgz",
+ "integrity": "sha512-BgKg+A1+TawkYluh5Bo4cTmcgMN5L29uhJbDUQdHwPX+qgXRjIPYU5kIDHyxnAwCkCBiu9V5OpB2mpyeluVF2A==",
"license": "MIT",
"peerDependencies": {
- "react": ">=16.8.1",
- "react-dom": ">=16.8.1"
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
}
},
"node_modules/react-i18next": {
diff --git a/web/package.json b/web/package.json
index aa551d3d2..22902054d 100644
--- a/web/package.json
+++ b/web/package.json
@@ -53,7 +53,7 @@
"marked": "^17.0.4",
"react": "^19.2.4",
"react-dom": "^19.2.4",
- "react-hotkeys-hook": "^4.6.1",
+ "react-hotkeys-hook": "^5.2.4",
"react-i18next": "^17.0.2",
"react-leaflet": "^5.0.0",
"react-qr-code": "^2.0.18",