From 6069263beb8ad294fcc258859c0cd69728d52ead Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 4 Aug 2019 21:57:04 -0600 Subject: [PATCH] Add ctrl-W to 3D viewer. Fixes: lp:1835454 * https://bugs.launchpad.net/kicad/+bug/1835454 --- 3d-viewer/3d_viewer/3d_menubar.cpp | 3 ++- pcbnew/menubar_footprint_editor.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/3d-viewer/3d_viewer/3d_menubar.cpp b/3d-viewer/3d_viewer/3d_menubar.cpp index f6cf83ab7f..43241c3216 100644 --- a/3d-viewer/3d_viewer/3d_menubar.cpp +++ b/3d-viewer/3d_viewer/3d_menubar.cpp @@ -56,7 +56,8 @@ void EDA_3D_VIEWER::CreateMenuBar() export_xpm, SELECTION_CONDITIONS::ShowAlways ); fileMenu->AddSeparator(); - fileMenu->AddItem( wxID_CLOSE, _( "Close" ), "", exit_xpm, SELECTION_CONDITIONS::ShowAlways ); + fileMenu->AddItem( wxID_CLOSE, _( "Close\tCTRL+W" ), "", + exit_xpm, SELECTION_CONDITIONS::ShowAlways ); fileMenu->Resolve(); diff --git a/pcbnew/menubar_footprint_editor.cpp b/pcbnew/menubar_footprint_editor.cpp index 20a93f9acc..d60499e86c 100644 --- a/pcbnew/menubar_footprint_editor.cpp +++ b/pcbnew/menubar_footprint_editor.cpp @@ -105,7 +105,8 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar() fileMenu->AddItem( ACTIONS::print, haveFootprintCondition ); fileMenu->AddSeparator(); - fileMenu->AddItem( wxID_CLOSE, _( "Close\tCTRL+W" ), "", exit_xpm, SELECTION_CONDITIONS::ShowAlways ); + fileMenu->AddItem( wxID_CLOSE, _( "Close\tCTRL+W" ), "", + exit_xpm, SELECTION_CONDITIONS::ShowAlways ); fileMenu->Resolve();