Fix using Alt under MSW when wxGrid has focus
Stop consuming all wxEVT_KEY_UP events in wxGrid as this broke the standard keyboard handling: pressing and releasing "Alt" didn't give focus to the menu bar when wxGrid had it. This also seems completely unnecessary. Closes #24246. See #24247.
This commit is contained in:
parent
d495c50637
commit
50e35c71eb
2 changed files with 0 additions and 7 deletions
|
|
@ -2743,7 +2743,6 @@ protected:
|
|||
|
||||
void OnSize( wxSizeEvent& );
|
||||
void OnKeyDown( wxKeyEvent& );
|
||||
void OnKeyUp( wxKeyEvent& );
|
||||
void OnChar( wxKeyEvent& );
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2642,7 +2642,6 @@ wxBEGIN_EVENT_TABLE( wxGrid, wxScrolledCanvas )
|
|||
EVT_SIZE( wxGrid::OnSize )
|
||||
EVT_DPI_CHANGED( wxGrid::OnDPIChanged )
|
||||
EVT_KEY_DOWN( wxGrid::OnKeyDown )
|
||||
EVT_KEY_UP( wxGrid::OnKeyUp )
|
||||
EVT_CHAR ( wxGrid::OnChar )
|
||||
wxEND_EVENT_TABLE()
|
||||
|
||||
|
|
@ -6117,11 +6116,6 @@ void wxGrid::OnKeyDown( wxKeyEvent& event )
|
|||
}
|
||||
}
|
||||
|
||||
void wxGrid::OnKeyUp( wxKeyEvent& WXUNUSED(event) )
|
||||
{
|
||||
// try local handlers
|
||||
}
|
||||
|
||||
void wxGrid::OnChar( wxKeyEvent& event )
|
||||
{
|
||||
// is it possible to edit the current cell at all?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue