mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-15 13:04:44 +00:00
Merge branch 'main' into mac
This commit is contained in:
+2
-2
@@ -160,11 +160,11 @@ export function getModifierKey(): string {
|
||||
}
|
||||
}
|
||||
|
||||
export function getEmojiKey(): string {
|
||||
export function getAltKey(): string {
|
||||
const isMac = /Mac/.test(navigator.userAgent);
|
||||
if (isMac) {
|
||||
return "⌥"; // Option key
|
||||
} else {
|
||||
return "Ctrl";
|
||||
return "Alt";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user