mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 10:23:33 +00:00
Add browser forward/back hotkeys (#155)
This commit is contained in:
parent
0cba405b45
commit
8cbc25a932
4 changed files with 17 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue