Merge pull request #4928 from urbit/lf/keybind-fix

Settings: correct default keybinds
This commit is contained in:
matildepark 2021-05-21 16:08:57 -04:00 committed by GitHub
commit 9487ec1685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
import f from 'lodash/fp';
import { RemoteContentPolicy, LeapCategories, leapCategories } from "~/types/local-update";
import { RemoteContentPolicy, LeapCategories, leapCategories } from '~/types/local-update';
import { useShortcut as usePlainShortcut } from '~/logic/lib/shortcutContext';
import { BaseState, createState } from '~/logic/state/base';
import {useCallback} from 'react';
import { useCallback } from 'react';
export interface ShortcutMapping {
cycleForward: string;
@ -12,7 +12,6 @@ export interface ShortcutMapping {
hideSidebar: string;
}
export interface SettingsState extends BaseState<SettingsState> {
display: {
backgroundType: 'none' | 'url' | 'color';
@ -76,7 +75,7 @@ const useSettingsState = createState<SettingsState>('Settings', {
keyboard: {
cycleForward: 'ctrl+\'',
cycleBack: 'ctrl+;',
navForward: 'ctrl+[',
navForward: 'ctrl+]',
navBack: 'ctrl+[',
hideSidebar: 'ctrl+\\'
}