How to determine whether the key of the shortcut key is available

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】
image

user definition:【Mod-k】
built-in: 【Mod-k Mod-u】
image

PS: Checked the documentation, found no relevant information

This isn’t something the library provides.