Re: [gtkmm] on_key_press_event on Gtk::DrawingArea



Might s.o. please insert this hint to the online-help?
Thanks,
Paul

On Tue, 2003-03-25 at 14:00, Paul Davis wrote:
> >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
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list




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