Make keyboard input to controls in a wxPopupWindow work in at least some cases, embedded wxListCtrl still doesn't work, wxVListBox does

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-10-06 12:13:24 +00:00
parent 4bae10bdff
commit 3591d10f4f
2 changed files with 31 additions and 49 deletions

View File

@@ -811,7 +811,7 @@ struct wxGtkIMData
extern "C" {
static gboolean
gtk_window_key_press_callback( GtkWidget *widget,
gtk_window_key_press_callback( GtkWidget *WXUNUSED(widget),
GdkEventKey *gdk_event,
wxWindow *win )
{
@@ -820,12 +820,6 @@ gtk_window_key_press_callback( GtkWidget *widget,
if (g_blockEventsOnDrag)
return FALSE;
// GTK+ sends keypress events to the focus widget and then
// to all its parent and grandparent widget. We only want
// the key events from the focus widget.
if (!GTK_WIDGET_HAS_FOCUS(widget))
return FALSE;
wxKeyEvent event( wxEVT_KEY_DOWN );
bool ret = false;
bool return_after_IM = false;