[Gambas-user] Key code constant wrong?
Alain Baudrez
a.baudrez at ...626...
Sat Nov 9 09:49:01 CET 2013
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
More information about the User
mailing list