composer/settings: use ActionButton iconOnly send; replace deprecated navigator.platform with lib/platform (P1-9, P2-46)
This commit is contained in:
1 parent
b0b0cfa35b
commit
296c72eb3f
3 files changed
+26
-7
No files matched your search
@@ -0,0 +1,11 @@
|
||||
export function isMac(): boolean {
|
||||
return window.agentCompany.platform === "darwin";
|
||||
}
|
||||
|
||||
export function cmdOrCtrlLabel(): string {
|
||||
return isMac() ? "Cmd" : "Ctrl";
|
||||
}
|
||||
|
||||
export function cmdOrCtrlSymbol(): string {
|
||||
return isMac() ? "⌘" : "Ctrl+";
|
||||
}
|
||||
Reference in new issue
Block a user