Hi,marijn.
demands:
User-defined shortcut keys。We also provide some basic shortcut keys
I want to judge whether the values of key, mac, win, and linux in hotKeys are legal before setting keymap.of(hotKeys)。I can prompt the user to set up failed
[ // user settings
{
key: 'Mod-l-k',
win: 'Mod-l-k',
run: (params) => {
console.log('params: Mod-l-k', params);
},
},
{
key: 'Mod-K',
run: (params) => {
console.log('params: Mod-K', params);
},
},
];
abnormal behavior:
user definition:【Mod-l-k】
built-in: 【Mod-k】
user definition:【Mod-k】
built-in: 【Mod-k Mod-u】
PS: Checked the documentation, found no relevant information