Pull fix back from master.

This commit is contained in:
Jeff Young 2023-04-16 23:06:36 +01:00
parent 7a4650a1a9
commit 82a5f307ed
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,7 @@
#include <widgets/paged_dialog.h>
#include <widgets/wx_infobar.h>
#include <widgets/wx_aui_art_providers.h>
#include <widgets/wx_grid.h>
#include <wx/app.h>
#include <wx/config.h>
#include <wx/display.h>
@ -403,6 +404,8 @@ void EDA_BASE_FRAME::HandleUpdateUIEvent( wxUpdateUIEvent& aEvent, EDA_BASE_FRAM
enableRes = true;
else if( textEntry && isPaste && textEntry->CanPaste() )
enableRes = true;
else if( dynamic_cast<WX_GRID*>( focus ) )
enableRes = false; // Must disable menu in order to get command as CharHook event
}
aEvent.Enable( enableRes );