Comment 15 for bug 1207927

Revision history for this message
Stephen Brandt (ztefn) wrote :

Did you use the KeyPad Enter key? I didn't add support for that one yet, but will do. Apart from that, return key trigger only works if there's actually a row being selected while filtering. With the current treeview selection behavior this means only if the name of an item in the tree starts with the entered text a selection will be set automatically and the return key will trigger the default action for that row.

Great news in this regard is that I finally found out how to override the selection behavior. Turns out you can actually define your own function [1]. I've played around with it for a bit and it looks very promising. This means networks and members can eventually be selected based on the same rules as the filtering itself (matching any string part within name, ID and IP-address).

So stay tuned for some nice updates coming days! :)

[1] https://developer.gnome.org/gtk2/stable/GtkTreeView.html#GtkTreeViewSearchEqualFunc