Add browser forward/back hotkeys (#155)

This commit is contained in:
jeffvli 2023-09-22 17:52:00 -07:00
parent 0cba405b45
commit 8cbc25a932
4 changed files with 17 additions and 2 deletions

View file

@ -11,6 +11,8 @@ import { SettingsOptions } from '/@/renderer/features/settings/components/settin
const ipc = isElectron() ? window.electron.ipc : null;
const BINDINGS_MAP: Record<BindingActions, string> = {
browserBack: 'Browser back',
browserForward: 'Browser forward',
globalSearch: 'Global search',
localSearch: 'In-page search',
next: 'Next track',

View file

@ -1,12 +1,17 @@
import { Divider, Stack } from '@mantine/core';
import isElectron from 'is-electron';
import { WindowHotkeySettings } from './window-hotkey-settings';
import { HotkeyManagerSettings } from '/@/renderer/features/settings/components/hotkeys/hotkey-manager-settings';
export const HotkeysTab = () => {
return (
<Stack spacing="md">
<WindowHotkeySettings />
<Divider />
{isElectron() && (
<>
<WindowHotkeySettings />
<Divider />
</>
)}
<HotkeyManagerSettings />
</Stack>
);