The "freeglut" bug list has an entry to the effect that if the user
presses the Tab key while holding down the Shift key, no callback function
(either keyboard or special-key) is invoked. I have traced this to the fact
that the "XLookupString" does not return a nonzero string for this
combination. Instead it returns a "keySym" of 0xFE20, called
"XK_ISO_Left_Tab" in "X11/keysymdef.h". Because the string length returned
is zero, the keyboard callback is not invoked; because there is no
"GLUT_KEY_???" defined constant for the left tab, the special key callback
is not invoked.
Do we want the "freeglut" library to recognize this key combination?
If so, do we want to invoke the keyboard callback, passing it a simple tab
character, or do we want to define a new "GLUT_KEY_SHIFT_TAB" and invoke the
special key callback?
I have not looked into what GLUT does.
John F. Fay
Technical Fellow, Jacobs/Sverdrup TEAS Group
Get latest updates about Open Source Projects, Conferences and News.