Re: Using [ENTER] with a ComboBox

From: Dmitry Karasik <dmitry_at_karasik.eu.org>
Date: 30 May 2007 10:04:59 +0200
To: prima_at_prima.eu.org

        Hi lanas!

Try to overload either combo's or its inputline's onKeyDown,
as $combo = Combo->new( ... onKeyDown => sub {} ) or
$combo-> InputLine-> onKeyDown( sub {}), also call clear_event after
you catch kb::Enter, so other controls won't try to handle it.

/dk

 lanas> Hello, I'm using a combobox to display values but there's also a
 lanas> possibility for a user to type-in a new value and then press
 lanas> [ENTER]. How can I make the combobox react on the [ENTER] key as
 lanas> if it was a selection made from the list ?

 lanas> Thanks,

 lanas> Al.

-- 
Sincerely,
	Dmitry Karasik
Received on Wed 30 May 2007 - 10:05:02 CEST

This archive was generated by hypermail 2.2.0 : Wed 27 Mar 2013 - 10:40:22 CET