Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function normalizeKeys(options: IKeyBindingOptions): string[] {
let keys: string[];
if (Platform.IS_WIN) {
keys = options.winKeys || options.keys;
} else if (Platform.IS_MAC) {
keys = options.macKeys || options.keys;
} else {
keys = options.linuxKeys || options.keys;
}
return keys.map(normalizeKeystroke);
}