diff --git a/ui/src/bichat/components/ModelSelector.tsx b/ui/src/bichat/components/ModelSelector.tsx index 6cd5c0c..c682f4e 100644 --- a/ui/src/bichat/components/ModelSelector.tsx +++ b/ui/src/bichat/components/ModelSelector.tsx @@ -39,7 +39,10 @@ export function ModelSelector() { useEffect(() => { const handler = (e: KeyboardEvent) => { - if ((e.metaKey || e.ctrlKey) && e.shiftKey && e.key === 'm') { + const isModifierPressed = e.metaKey || e.ctrlKey; + const isShortcutKey = e.code === 'KeyM' || e.key.toLowerCase() === 'm'; + + if (isModifierPressed && e.shiftKey && !e.altKey && isShortcutKey) { e.preventDefault(); rotateModel(); }