Stefan Weil 4e79bcbb96 ui/sdl: Fix handling of caps lock and num lock keys
Starting with SDL version 1.2.14, caps lock and num lock keys
will send a SDL_KEYUP when SDL_DISABLE_LOCK_KEYS=1 is set in
the environment.

The new code sets the environment unconditionally
(it won't harm old versions which do not know it).

The workaround for SDL_KEYUP is only compiled with old SDL versions.

A similar patch without handling of old SDL versions was already
published by Benjamin Drung for Ubuntu.

Cc: Anthony Liguori <aliguori@us.ibm.com>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Benjamin Drung <benjamin.drung@gmail.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2011-02-04 06:33:26 -06:00
..
2010-10-21 18:31:28 +02:00
2010-07-26 17:35:54 -05:00
2010-07-26 17:35:54 -05:00
2010-07-26 17:35:54 -05:00
2011-01-24 15:41:40 +01:00
2010-07-26 17:35:54 -05:00
2010-07-26 17:35:54 -05:00
2010-07-26 17:35:54 -05:00
2011-01-24 15:13:54 +01:00
2010-09-21 18:36:43 +02:00
2010-07-26 17:35:54 -05:00
2010-10-05 13:53:56 -05:00
2010-07-26 17:36:14 -05:00
2010-07-26 17:36:14 -05:00
2010-07-26 17:36:14 -05:00
2010-07-26 17:36:14 -05:00
2010-07-26 17:35:54 -05:00
2010-07-26 17:35:54 -05:00
2010-12-09 14:23:24 +01:00
2010-07-26 17:35:54 -05:00