blob: 09b443077df24ab8651a4bb276fc9f223b409178 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import type { KeybindingConfig } from "@/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 };
}
|