Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

454 B
Raw Blame
import { detectMobileDevice } from 'dsh-tauri/client'

function isMacOS(): boolean {
  return typeof navigator !== 'undefined' && navigator.userAgent.includes('Macintosh')
}

export function shortcutLabel(key: string): string {
  if (detectMobileDevice())
    return ''
  return isMacOS() ? `⌘${key}` : `Ctrl+${key}`
}

export function redoShortcutLabel(): string {
  if (detectMobileDevice())
    return ''
  return isMacOS() ? '⇧⌘Z' : 'Ctrl+Y'
}