Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: AltGr keyboard support, shared platform detection utility
Adam Eivyec425fe6edc0
diff --git a/client/src/components/CmdKSearch.jsx b/client/src/components/CmdKSearch.jsxindex 2e4c354690..1104c0cdf5 100644--- a/client/src/components/CmdKSearch.jsx+++ b/client/src/components/CmdKSearch.jsx@@ -5,6 +5,7 @@ import { Brain, Cpu, Package, History, HeartPulse, Search, Loader2 } from 'lucidimport { useCmdKSearch } from '../hooks/useCmdKSearch';import { useScrollLock } from '../hooks/useScrollLock';import { search } from '../services/api';+import { modKey } from '../utils/platform';const ICON_MAP = { Brain, Cpu, Package, History, HeartPulse };@@ -144,7 +145,7 @@ export default function CmdKSearch() {aria-label="Search PortOS"/><span className="text-xs text-gray-500 border border-port-border rounded px-1.5 py-0.5 shrink-0">- {navigator.platform?.includes('Mac') ? '⌘K' : 'Ctrl+K'}+ {`${modKey}+K`}</span></div>diff --git a/client/src/components/KeyboardHelp.jsx b/client/src/components/KeyboardHelp.jsxindex 1e46f2d429..15f3c996c0 100644--- a/client/src/components/KeyboardHelp.jsx+++ b/client/src/components/KeyboardHelp.jsx@@ -3,15 +3,13 @@ import { createPortal } from 'react-dom';import { Keyboard, X } from 'lucide-react';import { useKeyboardHelp } from '../hooks/useKeyboardHelp';import { useScrollLock } from '../hooks/useScrollLock';--const isMac = typeof navigator !== 'undefined' && navigator.platform?.includes('Mac');-const mod = isMac ? '\u2318' : 'Ctrl';+import { modKey } from '../utils/platform';const SHORTCUT_SECTIONS = [{title: 'Global',shortcuts: [- { keys: [`${mod}+K`], description: 'Open search' },+ { keys: [`${modKey}+K`], description: 'Open search' },{ keys: ['?'], description: 'Show keyboard shortcuts' },{ keys: ['Esc'], description: 'Close overlays' },],diff --git a/client/src/hooks/useKeyboardHelp.js b/client/src/hooks/useKeyboardHelp.jsindex 93f0503ec1..377562f32d 100644--- a/client/src/hooks/useKeyboardHelp.js+++ b/client/src/hooks/useKeyboardHelp.js@@ -11,13 +11,10 @@ export function useKeyboardHelp() {return;}- // Don't trigger shortcuts when typing in inputs/textareas/contenteditable- const tag = e.target.tagName;- if (tag === 'INPUT' || tag === 'TEXTAREA' || e.target.isContentEditable) return;- // Don't trigger with modifier keys- if (e.metaKey || e.ctrlKey || e.altKey) return;-+ // ? toggle — check key before modifiers so AltGr layouts (ctrlKey+altKey) still workif (e.key === '?' && !e.repeat) {+ const tag = e.target.tagName;+ if (tag === 'INPUT' || tag === 'TEXTAREA' || e.target.isContentEditable) return;e.preventDefault();setOpen(prev => !prev);}diff --git a/client/src/utils/platform.js b/client/src/utils/platform.jsnew file mode 100644index 0000000000..d86479fbee--- /dev/null+++ b/client/src/utils/platform.js@@ -0,0 +1,4 @@+export const isMac = typeof navigator !== 'undefined' &&+ (/Mac|iPhone|iPad|iPod/.test(navigator.userAgentData?.platform ?? navigator.platform ?? ''));++export const modKey = isMac ? '⌘' : 'Ctrl';