Don't show Ctrl-W for Close on MSW.
Fixes https://gitlab.com/kicad/code/kicad/issues/8391
This commit is contained in:
parent
6c161eec68
commit
dd11f86000
|
@ -60,7 +60,9 @@ static PSEUDO_ACTION* g_gesturePseudoActions[] = {
|
|||
};
|
||||
|
||||
static PSEUDO_ACTION* g_standardPlatformCommands[] = {
|
||||
#ifndef __WINDOWS__
|
||||
new PSEUDO_ACTION( _( "Close" ), MD_CTRL + 'W' ),
|
||||
#endif
|
||||
new PSEUDO_ACTION( _( "Quit" ), MD_CTRL + 'Q' )
|
||||
};
|
||||
|
||||
|
|
|
@ -208,10 +208,17 @@ wxMenuItem* ACTION_MENU::Add( ACTION_MENU* aMenu )
|
|||
|
||||
void ACTION_MENU::AddClose( wxString aAppname )
|
||||
{
|
||||
#ifdef __WINDOWS_
|
||||
Add( _( "Close" ),
|
||||
wxString::Format( _( "Close %s" ), aAppname ),
|
||||
wxID_CLOSE,
|
||||
BITMAPS::exit );
|
||||
#else
|
||||
Add( _( "Close" ) + "\tCtrl+W",
|
||||
wxString::Format( _( "Close %s" ), aAppname ),
|
||||
wxID_CLOSE,
|
||||
BITMAPS::exit );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue