X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fgwindowgui.C;h=31f79e348b1836bcc3a628a9af173b10469d7c78;hp=f0a050a27b043b3150f1c849419c5072f037a0d1;hb=07217a92dbd5263eeb531053a3c62622f9bf925c;hpb=7742a5b086fb7dc60ffc75459b1d25f80fe47990 diff --git a/cinelerra-5.1/cinelerra/gwindowgui.C b/cinelerra-5.1/cinelerra/gwindowgui.C index f0a050a2..31f79e34 100644 --- a/cinelerra-5.1/cinelerra/gwindowgui.C +++ b/cinelerra-5.1/cinelerra/gwindowgui.C @@ -496,15 +496,29 @@ int GWindowGUI::close_event() int GWindowGUI::keypress_event() { - switch(get_keypress()) { - case KEY_F1: - if( !ctrl_down() && shift_down() ) + if( ctrl_down() && shift_down() ) { + switch(get_keypress()) { + case KEY_F1: + case KEY_F2: + case KEY_F3: + case KEY_F4: + if( ctrl_down() && shift_down() ) { + resend_event(mwindow->gui); + return 1; + } + } + } + else if( !ctrl_down() && shift_down() ) { + switch(get_keypress()) { + case KEY_F1: toggle_camera_xyz(); - break; - case KEY_F2: - if( !ctrl_down() && shift_down() ) + return 1; + case KEY_F2: toggle_projector_xyz(); - break; + return 1; + } + } + switch(get_keypress()) { case 'w': case 'W': case '0':