blob: bb60b044a6a4e474213ec1f46b544d253fd38342 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { getPersistedKeybindingsState } from "../persisted-state";
export function v4ToV5({ state }: { state: unknown }): unknown {
const v4 = getPersistedKeybindingsState({ state });
if (!v4) return state;
const keybindings = { ...v4.keybindings };
if (!keybindings.escape) {
keybindings.escape = "deselect-all";
}
return { ...v4, keybindings };
}
|