[Gtk-sharp-list] Entry & the Return Key

Peter Johanson peter at peterjohanson.com
Tue Nov 2 12:36:17 EDT 2010

On Tue, Nov 02, 2010 at 05:28:47PM +0100, Jacek Rużyczka wrote:
> Now I would like to place my cursor in the entry and scan a handful of 
> barcodes. Once it is scanned, it will be analyzed and added to a list. The 
> challenge is nowthe following: Newlines are ignored in an entry, so that even 
> a KeyPress event is not fired. So how should I recognize newlines / Return 
> keystrokes whilst I am inside an Entry? BTW, the solution must be platform-
> independent. Thank you for any help.


Try using Gtk.Entry.Activated:



More information about the Gtk-sharp-list mailing list