Browse Source

Don't show Ctrl-W for Close on MSW.

Fixes https://gitlab.com/kicad/code/kicad/issues/8391
6.0.7
Jeff Young 5 years ago
parent
commit
dd11f86000
  1. 2
      common/hotkey_store.cpp
  2. 7
      common/tool/action_menu.cpp

2
common/hotkey_store.cpp

@ -60,7 +60,9 @@ static PSEUDO_ACTION* g_gesturePseudoActions[] = {
}; };
static PSEUDO_ACTION* g_standardPlatformCommands[] = { static PSEUDO_ACTION* g_standardPlatformCommands[] = {
#ifndef __WINDOWS__
new PSEUDO_ACTION( _( "Close" ), MD_CTRL + 'W' ), new PSEUDO_ACTION( _( "Close" ), MD_CTRL + 'W' ),
#endif
new PSEUDO_ACTION( _( "Quit" ), MD_CTRL + 'Q' ) new PSEUDO_ACTION( _( "Quit" ), MD_CTRL + 'Q' )
}; };

7
common/tool/action_menu.cpp

@ -208,10 +208,17 @@ wxMenuItem* ACTION_MENU::Add( ACTION_MENU* aMenu )
void ACTION_MENU::AddClose( wxString aAppname ) void ACTION_MENU::AddClose( wxString aAppname )
{ {
#ifdef __WINDOWS_
Add( _( "Close" ),
wxString::Format( _( "Close %s" ), aAppname ),
wxID_CLOSE,
BITMAPS::exit );
#else
Add( _( "Close" ) + "\tCtrl+W", Add( _( "Close" ) + "\tCtrl+W",
wxString::Format( _( "Close %s" ), aAppname ), wxString::Format( _( "Close %s" ), aAppname ),
wxID_CLOSE, wxID_CLOSE,
BITMAPS::exit ); BITMAPS::exit );
#endif
} }

Loading…
Cancel
Save