Re: spinbutton behaviour and key bindings for treeview
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: spinbutton behaviour and key bindings for treeview
- Date: Sun, 03 Apr 2005 23:10:30 +0200
On Sun, 2005-04-03 at 23:00 +0200, Boštjan Špetič wrote:
[Please don't start a new thread by replying to another one.]
2) i want to bind the 'delete' key press on the treeview to deleting
the active row. but, i want to be still able to edit the cells, which
means, that i still want to press delete key while editing a cell, to
simply clear a character.
... can it be done?
Yes. Connect to the key-press-event of the tree view, handle events for
which $event->keyval == $Gtk2::Gdk::Keysyms{ Delete } and return TRUE.
When you edit a cell, the tree view doesn't have focus and thus doesn't
receive events either -- so your signal handler never gets called.
--
Bye,
-Torsten
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]