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