Correctly handle ENTER for cell activation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -678,7 +678,17 @@ gtk_wx_cell_renderer_activate(
|
||||
|
||||
unsigned int model_col = cell->GetOwner()->GetModelColumn();
|
||||
|
||||
if (event->type == GDK_BUTTON_PRESS)
|
||||
if (!event)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
// activated by <ENTER>
|
||||
if (cell->Activate( renderrect, model, model_col, model_row ))
|
||||
ret = true;
|
||||
|
||||
return ret;
|
||||
}
|
||||
else if (event->type == GDK_BUTTON_PRESS)
|
||||
{
|
||||
GdkEventButton *button_event = (GdkEventButton*) event;
|
||||
wxPoint pt( ((int) button_event->x) - renderrect.x,
|
||||
|
Reference in New Issue
Block a user