fix: Show platform-specific keyboard shortcuts in UI (#6323)

Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
This commit is contained in:
Abhijay Jain
2026-01-07 21:31:47 +05:30
committed by GitHub
parent 7d751b3196
commit 76bf1d049f
5 changed files with 21 additions and 5 deletions
+11
View File
@@ -0,0 +1,11 @@
function isMac(): boolean {
return window.electron?.platform === 'darwin';
}
export function getNavigationShortcutText(): string {
return isMac() ? '⌘↑/⌘↓ to navigate messages' : 'Ctrl+↑/Ctrl+↓ to navigate messages';
}
export function getSearchShortcutText(): string {
return isMac() ? '⌘F' : 'Ctrl+F';
}