Re: [gtkmm] on_key_press_event on Gtk::DrawingArea
- From: Paul Davis <paul linuxaudiosystems com>
- To: Helen Mead <h mead 180sw com>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] on_key_press_event on Gtk::DrawingArea
- Date: Tue, 25 Mar 2003 08:00:00 -0500
>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]