# Gtk::ComboBox filtering

**URL:** <https://www.ruby-forum.com/t/gtk-combobox-filtering/100477>\
**Category:** Ruby-Gnome 2\
**Created:** [July 29, 2006, 5:23am UTC](https://www.ruby-forum.com/t/gtk-combobox-filtering/100477 "2006-07-29T05:23:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@Dobai-Pataky\_B](https://www.ruby-forum.com/u/Dobai-Pataky_B)\
**Post date:** [July 29, 2006, 5:23am UTC](https://www.ruby-forum.com/t/gtk-combobox-filtering/100477/1 "2006-07-29T05:23:31Z")

</div>

hi ,  
i’m using Gtk::ComboBox, becouse it’s model-view pattern based,  
but i couldn’t find it’s facility when the user types a text into the  
combo, that filters it’s entries.  
so i begun to write it for my class using Gtk::TreeModelFilter, it works  
well, except that it accepts keys only when it’s popup is closed.  
i use signal\_connect(‘key-press-event’) on the combobox to update my  
string for data filtering.  
my question is: how can i cach the keys typed into the combobox’s popup  
list?

thanks
