blob: ebabb7c0780a6d01cec7c3e862821fd626f83c3d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import type { KeybindingConfig } from "@/lib/actions/keybinding";
interface V5State {
keybindings: KeybindingConfig;
isCustomized: boolean;
}
export function v5ToV6({ state }: { state: unknown }): unknown {
const v5 = state as V5State;
const keybindings = { ...v5.keybindings };
if (keybindings.escape === "deselect-all") {
keybindings.escape = "cancel-interaction";
}
return { ...v5, keybindings };
}
|