Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix keyboard shortcut assistant (#31115)

Joshen Limf7e47266640d
diff --git a/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx b/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx
index 594c92f1aee..440d1b4aea5 100644
--- a/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx
@@ -115,7 +115,7 @@ const ProjectLayout = forwardRef<HTMLDivElement, PropsWithChildren<ProjectLayout
useEffect(() => {
const handler = (e: KeyboardEvent) => {
- if (e.metaKey && e.code === 'KeyI' && !e.altKey && !e.shiftKey) {
+ if (e.metaKey && e.key === 'i' && !e.altKey && !e.shiftKey) {
setAiAssistantPanel({ open: !open })
e.preventDefault()
e.stopPropagation()