Re: spinbutton behaviour and key bindings for treeview



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]