fixed the ingame command line...

...not accepting characters accessible via AltGr (certain keyboard
layouts) on windows systems
This commit is contained in:
Anonymissimus 2011-06-06 20:01:08 +00:00
parent a88edf26ba
commit 8fdfd9640e
2 changed files with 9 additions and 1 deletions

View file

@ -47,6 +47,9 @@ Version 1.9.6+svn:
* Miscellaneous and bugfixes:
* Fixed: issues with singular variant iterators
* Fixed: the Wescamp script download part
* Fixed the ingame command line not accepting
characters accessible via AltGr (certain keyboard layouts)
on windows systems
Version 1.9.6:
* Campaigns:

View file

@ -522,7 +522,12 @@ void textbox::handle_event(const SDL_Event& event)
if(character != 0) {
DBG_G << "Char: " << character << ", c = " << c << "\n";
}
if(event.key.keysym.mod & copypaste_modifier) {
if((event.key.keysym.mod & copypaste_modifier)
//on windows SDL fires for AltGr lctrl+ralt (needed to access @ etc on certain keyboards)
#ifdef _WIN32
&& !(event.key.keysym.mod & KMOD_ALT)
#endif
) {
switch(c) {
case SDLK_v: // paste
{