Fix cmd i not closing AI assistant (#36164)

This commit is contained in:
Joshen Lim authored and GitHub committed 2025-06-04 18:43:33 +08:00
1 parent 80b4d9d18f
commit 2df44bc073
1 file changed
+1 -1
@@ -125,7 +125,7 @@ const ProjectLayout = forwardRef<HTMLDivElement, PropsWithChildren<ProjectLayout
useEffect(() => {
const handler = (e: KeyboardEvent) => {
if (e.metaKey && e.key === 'i' && !e.altKey && !e.shiftKey) {
aiSnap.openAssistant()
aiSnap.toggleAssistant()
e.preventDefault()
e.stopPropagation()
}