The value for the key.enter constant in the 3.5.0 on my box is given as 16777221
? key.enter 16777221 But, the value returned by key.code in the program is 16777220 in the keyrelease or the keypress events which implies that I cannot check if the key pressed is the Enter/Return key using the constants. As a workaround I switched to checking for the number or the key.enter value as valid values, but I know that is not the way to go.... Bug? [System] OperatingSystem=Linux Kernel=3.8.0-33-generic Architecture=x86_64 Distribution=Ubuntu 12.04.3 LTS Desktop=GNOME Theme=QGtk Language=nl_NL.UTF-8 Memory=3686M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.10 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user