@@ -23,6 +23,7 @@ import { TabBarModel } from "@/app/tab/tabbar-model";
2323import { WorkspaceLayoutModel } from "@/app/workspace/workspace-layout-model" ;
2424import { deleteLayoutModelForTab , getLayoutModelForStaticTab , NavigateDirection } from "@/layout/index" ;
2525import * as keyutil from "@/util/keyutil" ;
26+ import { isWindows } from "@/util/platformutil" ;
2627import { CHORD_TIMEOUT } from "@/util/sharedconst" ;
2728import { fireAndForget } from "@/util/util" ;
2829import * as jotai from "jotai" ;
@@ -606,14 +607,25 @@ function registerGlobalKeys() {
606607 return true ;
607608 } ) ;
608609 }
609- globalKeyMap . set ( "Ctrl:Shift:c{Digit0}" , ( ) => {
610- WaveAIModel . getInstance ( ) . focusInput ( ) ;
611- return true ;
612- } ) ;
613- globalKeyMap . set ( "Ctrl:Shift:c{Numpad0}" , ( ) => {
614- WaveAIModel . getInstance ( ) . focusInput ( ) ;
615- return true ;
616- } ) ;
610+ if ( isWindows ( ) ) {
611+ globalKeyMap . set ( "Alt:c{Digit0}" , ( ) => {
612+ WaveAIModel . getInstance ( ) . focusInput ( ) ;
613+ return true ;
614+ } ) ;
615+ globalKeyMap . set ( "Alt:c{Numpad0}" , ( ) => {
616+ WaveAIModel . getInstance ( ) . focusInput ( ) ;
617+ return true ;
618+ } ) ;
619+ } else {
620+ globalKeyMap . set ( "Ctrl:Shift:c{Digit0}" , ( ) => {
621+ WaveAIModel . getInstance ( ) . focusInput ( ) ;
622+ return true ;
623+ } ) ;
624+ globalKeyMap . set ( "Ctrl:Shift:c{Numpad0}" , ( ) => {
625+ WaveAIModel . getInstance ( ) . focusInput ( ) ;
626+ return true ;
627+ } ) ;
628+ }
617629 function activateSearch ( event : WaveKeyboardEvent ) : boolean {
618630 const bcm = getBlockComponentModel ( getFocusedBlockInStaticTab ( ) ) ;
619631 // Ctrl+f is reserved in most shells
0 commit comments