settings: add shortcut config

This commit is contained in:
Liam Fitzgerald 2021-05-05 14:03:10 +10:00
parent 88e5f297c9
commit 880cde81ca
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -17,6 +17,13 @@ export interface SettingsState extends BaseState<SettingsState> {
hideGroups: boolean;
hideUtilities: boolean;
};
keyboard: {
cycleForward: string;
cycleBack: string;
navForward: string;
navBack: string;
hideSidebar: string;
}
remoteContentPolicy: RemoteContentPolicy;
leap: {
categories: LeapCategories[];
@ -60,6 +67,13 @@ const useSettingsState = createState<SettingsState>('Settings', {
tutorial: {
seen: true,
joined: undefined
},
keyboard: {
cycleForward: 'ctrl+n',
cycleBack: 'ctrl+p',
navForward: 'ctrl+f',
navBack: 'ctrl+b',
hideSidebar: 'ctrl+h'
}
});