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

Jacek Rużyczka stacheldraht at interia.pl
Tue Nov 2 12:28:47 EDT 2010

Hi folks,

I have already realised that the Return / Enter key dows virtually nothing 
when you are inside a Gtk# entry. Of course you can use an F key to trigger 
the OK button and the like, but now I wanna fill my entry with the barcode 
scanner. As some of you might know, the scanner is recognized as a keyboard 
and concludes the barcode with a newline charcater.

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.


Gra dla duzych chlopcow.

More information about the Gtk-sharp-list mailing list