From 322c71d2ccae0fc75276531d836930240cd0e229 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 24 Jun 2013 13:46:24 +0200 Subject: [PATCH] Fixed hotkeys for switching GAL backends. --- pcbnew/hotkeys.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pcbnew/hotkeys.cpp b/pcbnew/hotkeys.cpp index aef8425021..5cc75c4eb9 100644 --- a/pcbnew/hotkeys.cpp +++ b/pcbnew/hotkeys.cpp @@ -83,11 +83,14 @@ static EDA_HOTKEY HkResetLocalCoord( wxT( "Reset Local Coordinates" ), static EDA_HOTKEY HkSwitchHighContrastMode( wxT("Switch Highcontrast mode"), HK_SWITCH_HIGHCONTRAST_MODE,'H'); #ifdef KICAD_GAL -static EDA_HOTKEY HkCanvasDefault( wxT( "Switch to default canvas" ), HK_CANVAS_DEFAULT, WXK_F9 ); -static EDA_HOTKEY HkCanvasOpenGL( wxT( "Switch to OpenGL canvas" ), HK_CANVAS_OPENGL, WXK_F10 ); +static EDA_HOTKEY HkCanvasDefault( wxT( "Switch to default canvas" ), + HK_CANVAS_DEFAULT, GR_KB_ALT + WXK_F9 ); +static EDA_HOTKEY HkCanvasOpenGL( wxT( "Switch to OpenGL canvas" ), + HK_CANVAS_OPENGL, GR_KB_ALT + WXK_F10 ); static EDA_HOTKEY HkCanvasOpenGLShaders( wxT( "Switch to OpenGL canvas with shaders" ), - HK_CANVAS_OPENGL_SHADERS, WXK_F11 ); -static EDA_HOTKEY HkCanvasCairo( wxT( "Switch to Cairo canvas" ), HK_CANVAS_CAIRO, WXK_F12 ); + HK_CANVAS_OPENGL_SHADERS, GR_KB_ALT + WXK_F11 ); +static EDA_HOTKEY HkCanvasCairo( wxT( "Switch to Cairo canvas" ), + HK_CANVAS_CAIRO, GR_KB_ALT + WXK_F12 ); #endif /* Fit on Screen */ #if !defined( __WXMAC__ )