Re: Key accelerators...



On Thu, 2009-05-21 at 20:11 +0200, Sever P A wrote: 
> Hi,
> 
> Problably, I complicated the question asking for complete code examples...
> 
> I need to connect a method after F12 key pressed... just this !
> 
> Is it possible ?

Maybe by enabling keyboard events on your toplevel widget (or another, I
don't konw) by using Gtk::Widget::set_events() or
Gtk::Widget::add_events() and then connecting your widget to the
Gtk::Widget::signal_key_press_event().  See the Gtk::Widget docs:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Widget.html. 

-- 
José Alburquerque



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