Re: spinbutton behaviour and key bindings for treeview



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.

... well, i don't work. here's what i have:

sub on_treeview_teachers_key_release_event {
my ($where, $now) = @_;
if ($now->keyval == 65535) {
&on_button_teachers_del_clicked;
}
return 1;
}

... ok, it's key_release, but i guess it's irrelevant?

regards, bostjan




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