The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: ArthurDenture on October 29, 2013, 02:09:19 AM

Title: SDL2: fix space inserting two spaces
Post by: ArthurDenture on October 29, 2013, 02:09:19 AM
As reported in another thread, spacebar was inserting two spaces in the SDL2 backend, because the event was getting processed twice -- once by the textinput event and once by the keydown event. The one-line fix, attached, is to ignore space within the keydown event.

Edit: ugh, posted in totally the wrong forum. Maybe a mod can move it? It doesn't look like non-mods have the power to delete their own posts...
Title: Re: SDL2: fix space inserting two spaces
Post by: kierongreen on October 31, 2013, 05:52:14 PM
Many thanks. Added to trunk by prissi in r6876