Gtk::Entry and arrow key events

hi,

i’m implementing history in a Gtk::Entry.

if i do:

@entry.signal_connect(“key_press_event”) do |widget, event|
if event.state.control_mask? and event.keyval == Gdk::Keyval::GDK_p
# show previous thing
elsif event.state.control_mask? and event.keyval == Gdk::Keyval::GDK_n
#show next thing
end
end

everything works, but if i try using Gdk::Keyval::GDK_uparrow and
Gdk::Keyval::GDK_downarrow, it doesn’t: the arrow events are captured
before this code, and the previous or next widget is activated.

what can i do?