From 8fdf2852c01954c4504e5d276c0a19fa71c99f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CHulxv=E2=80=9D?= Date: Thu, 6 Jan 2022 01:14:52 +0200 Subject: [PATCH] Change refresh data hotkey --- docs/shortcuts.md | 2 +- renderer/components/NavigationBar/index.js | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/shortcuts.md b/docs/shortcuts.md index 363dfdb..bca7711 100644 --- a/docs/shortcuts.md +++ b/docs/shortcuts.md @@ -3,7 +3,7 @@ | Key | Description | | ------------------------------ | ---------------------------- | | ctrl + s | Open Settings Modal | -| ctrl + r | Refresh data | +| alt + r | Refresh data | | ctrl + l | Switch display to line chart | | ctrl + b | Switch display to bar chart | | ctrl + t | Switch display to table | diff --git a/renderer/components/NavigationBar/index.js b/renderer/components/NavigationBar/index.js index 4269d72..c89f5e8 100644 --- a/renderer/components/NavigationBar/index.js +++ b/renderer/components/NavigationBar/index.js @@ -11,6 +11,7 @@ import { Flex, Kbd, Box, + HStack, } from "@chakra-ui/react"; import { HiArrowSmDown, HiAdjustments, HiRefresh } from "react-icons/hi"; @@ -63,7 +64,7 @@ export default function NavigationBar() { }); }, []); - useHotkeys("ctrl+r", () => { + useHotkeys("alt+r", () => { reloadConfigs(); reloadingTrafficData(); router.replace(router.asPath); @@ -99,7 +100,9 @@ export default function NavigationBar() { - + + ALT + + R - +