Re: how to prevent Gtk::Entry to "Pass on" key event?
- From: Yann Leydier <yann leydier info>
- To: gtkmm-list gnome org
- Subject: Re: how to prevent Gtk::Entry to "Pass on" key event?
- Date: Wed, 20 Jun 2012 08:47:28 +0200
Hi,
did you try to connect to the entry's signal and just return "true" so
that the event is not transmitted any further?
yann
On 20/06/12 08:40, jody wrote:
Hi
I have an application where i use keyboard events ( with
signal_key_press_event().connect() ) to
control some simple actions nan image which is displayed (e.g.
flipping it when 'f' is pressed)
I also have a Gtk::Entry to type in the name of then next file to be loaded.
But whenever i type the key 'f' in the Gtk::Entry, the image is
flipped (and the character 'f' is written in the Gtk::Entry),
i.e. the key event has been used by by the Gtk::Entry and then been
passed on to the containing window.
Is there a way to tell the entry to "destroy" the key press event
after using it?
Thank You
Jody
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]