"CTRL + char" key presses not working
Pressing CTRL + ['A'-'Z'] does not work as SDL handles these key-presses as special keys and maps them to the char-codes 1-31.
For example CTRL+'C' is 0x03. See http://www.bbdsoft.com/ascii.html for the mapping.
For example CTRL+'C' is 0x03. See http://www.bbdsoft.com/ascii.html for the mapping.
Leave a comment
The problem does not occur if the virtual keycodes are used. Just if the SDL_keysym.unicode character codes are used (which should be preferred). Note that virtual keycodes are not internationalized, e.g. for an SDLK_M event, a French user has to press '?'. This problem does not occur if characters are used instead.