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 - +