1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-23 21:29:13 +02:00
Vadim Markovtsev 32ece9513d Fix 2331 save menu keyboard event leak
The control flows the following way:
- we receive SDL_KEYDOWN with letter 's' in the adventure map interface
- save dialog opens
- text input receives focus
- text input enables receiving SDL_KeyboardEvent-s which go between DOWN and UP
- the button on keyboard becomes UP (the menu opens very fast)
- text input receives SDL_KeyboardEvent and inserts 's'
- text input receives SDL_KEYUP

So the apparent fix is to open the save dialog on SDL_KEYUP event
2016-01-28 10:26:40 +03:00
..
2015-09-02 18:27:56 +03:00
2015-10-17 09:23:40 +03:00
2015-06-22 14:24:00 +03:00
2016-01-16 19:00:53 +01:00
2015-11-11 15:44:17 +03:00
2015-11-14 03:59:16 +03:00
2013-03-01 21:32:26 +00:00
2012-12-01 06:30:52 +00:00
2012-12-01 06:30:52 +00:00
2011-12-13 21:35:28 +00:00
2016-01-27 15:21:29 +03:00
2012-12-01 06:30:52 +00:00