mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-29 05:31:51 +02:00
Switch to BiomeJS (#306)
This commit is contained in:
@@ -281,16 +281,15 @@ export function useFormattedHotkey(action: HotkeyAction | null): string[] | null
|
||||
|
||||
if (os === 'macos') {
|
||||
return labelParts;
|
||||
} else {
|
||||
return [labelParts.join('+')];
|
||||
}
|
||||
return [labelParts.join('+')];
|
||||
}
|
||||
|
||||
const resolveHotkeyKey = (key: string) => {
|
||||
const os = type();
|
||||
if (key === 'CmdCtrl' && os === 'macos') return 'Meta';
|
||||
else if (key === 'CmdCtrl') return 'Control';
|
||||
else return key;
|
||||
if (key === 'CmdCtrl') return 'Control';
|
||||
return key;
|
||||
};
|
||||
|
||||
function compareKeys(keysA: string[], keysB: string[]) {
|
||||
|
||||
Reference in New Issue
Block a user