mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 09:01:17 -08:00
Fix keyboard shortcut modifiers for Mac users
fix for https://github.com/SableClient/Sable/security/code-scanning/1
This commit is contained in:
1 file changed
+1
-2
@@ -23,8 +23,7 @@ function formatKey(key: string): string {
|
||||
return key
|
||||
.replace(/\bmod\b/g, isMac ? '⌘' : 'Ctrl')
|
||||
.replace(/\balt\b/gi, isMac ? '⌥' : 'Alt')
|
||||
.replace(/\bshift\b/gi, '⇧')
|
||||
.replace(/\+/g, '+');
|
||||
.replace(/\bshift\b/gi, '⇧');
|
||||
}
|
||||
|
||||
const SHORTCUT_CATEGORIES: ShortcutCategory[] = [
|
||||
|
||||
Reference in new issue
Block a user