mirror of
https://github.com/urbit/shrub.git
synced 2024-12-11 11:02:25 +03:00
Merge pull request #4928 from urbit/lf/keybind-fix
Settings: correct default keybinds
This commit is contained in:
commit
9487ec1685
@ -1,8 +1,8 @@
|
|||||||
import f from 'lodash/fp';
|
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 { useShortcut as usePlainShortcut } from '~/logic/lib/shortcutContext';
|
||||||
import { BaseState, createState } from '~/logic/state/base';
|
import { BaseState, createState } from '~/logic/state/base';
|
||||||
import {useCallback} from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
export interface ShortcutMapping {
|
export interface ShortcutMapping {
|
||||||
cycleForward: string;
|
cycleForward: string;
|
||||||
@ -12,7 +12,6 @@ export interface ShortcutMapping {
|
|||||||
hideSidebar: string;
|
hideSidebar: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export interface SettingsState extends BaseState<SettingsState> {
|
export interface SettingsState extends BaseState<SettingsState> {
|
||||||
display: {
|
display: {
|
||||||
backgroundType: 'none' | 'url' | 'color';
|
backgroundType: 'none' | 'url' | 'color';
|
||||||
@ -76,7 +75,7 @@ const useSettingsState = createState<SettingsState>('Settings', {
|
|||||||
keyboard: {
|
keyboard: {
|
||||||
cycleForward: 'ctrl+\'',
|
cycleForward: 'ctrl+\'',
|
||||||
cycleBack: 'ctrl+;',
|
cycleBack: 'ctrl+;',
|
||||||
navForward: 'ctrl+[',
|
navForward: 'ctrl+]',
|
||||||
navBack: 'ctrl+[',
|
navBack: 'ctrl+[',
|
||||||
hideSidebar: 'ctrl+\\'
|
hideSidebar: 'ctrl+\\'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user