Re: [gtkmm] on_key_press_event on Gtk::DrawingArea



>I seem to be experiencing problems detecting keyboard events on a
>Gtk::DrawingArea.  The "on_button_press_event" event picks up mouse
>clicks on the drawing area, but the "on_key_press_event" doesn't appear
>to detect keyboard events.

try adding the CAN_FOCUS flag to the widget.

key press events go the top level window first, then to the current
focus target. widgets that cannot focus never get key events. 

--p



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]