1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00
vcmi/client
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
..
battle Replace std::remove_if with vstd::erase_if 2016-01-26 10:19:58 +03:00
gui Removed includes of CGameState from headers 2015-12-02 21:39:53 +02:00
icons Changes related to Debian packaging, based on josch patch 2014-03-20 18:17:40 +00:00
widgets Fix 2139 captured spell scroll descriptions 2016-01-25 08:49:26 +03:00
windows Fix 2331 save menu keyboard event leak 2016-01-28 10:26:40 +03:00
CBitmapHandler.cpp Get rid of CSDL_Ext::colorSetAlpha 2015-09-02 18:49:29 +03:00
CBitmapHandler.h Made speed of most of battle animations time-based 2013-07-06 16:10:20 +00:00
CDefHandler.cpp More correct usage of SDL_Palette 2015-09-05 15:03:37 +03:00
CDefHandler.h Cleanup CDefHandler 2015-09-02 18:27:56 +03:00
CGameInfo.cpp Finalization of object type handler interface 2014-05-16 23:50:02 +03:00
CGameInfo.h Object class handler is now a proper "handler" 2014-05-24 01:56:51 +03:00
Client.cpp Merge pull request #160 from vmarkovtsev/issue/2388 2016-01-27 20:49:03 +03:00
Client.h Refactoring: always use std prefix for shared_ptr, unique_ptr and make_shared 2015-12-29 05:43:33 +03:00
CMakeLists.txt Fix vcmiclient CMakeLists.txt 2015-10-17 09:23:40 +03:00
CMessage.cpp Add "override" to virtual overriden methods 2015-10-13 21:05:36 +03:00
CMessage.h - Renamed client/BattleInterface to client/battle and client/UIFramework to client/gui 2013-04-07 11:52:07 +00:00
CMT.cpp Merge branch 'Zyx-develop' into develop 2016-01-27 18:53:41 +03:00
CMT.h Merge branch 'SDL1Wipe' into develop 2015-06-22 14:24:00 +03:00
CMusicHandler.cpp Refactoring: always use std prefix for shared_ptr, unique_ptr and make_shared 2015-12-29 05:43:33 +03:00
CMusicHandler.h Refactoring: always use std prefix for shared_ptr, unique_ptr and make_shared 2015-12-29 05:43:33 +03:00
CPlayerInterface.cpp Merge pull request #160 from vmarkovtsev/issue/2388 2016-01-27 20:49:03 +03:00
CPlayerInterface.h Fix 1810 suggest artifact assembly 2016-01-23 16:24:43 +03:00
CPreGame.cpp compilation fixes... 2016-01-16 19:00:53 +01:00
CPreGame.h Refactoring: always use std prefix for shared_ptr, unique_ptr and make_shared 2015-12-29 05:43:33 +03:00
CVideoHandler.cpp try to fix travis build. 2015-11-11 15:44:17 +03:00
CVideoHandler.h Another ffmpeg api fix 2015-11-14 03:59:16 +03:00
DPIaware.manifest
Graphics.cpp Removed all #include's of CMap.h from headers. 2015-12-02 21:05:10 +02:00
Graphics.h [Spells] Added basic support for icons and sounds 2014-03-10 16:00:58 +00:00
Info.plist Attempt to apply patch from stopiccot. 2013-03-01 21:32:26 +00:00
mapHandler.cpp Use "Favorable" instead of "Favourable" everywhere for consistency 2015-12-06 02:23:41 +03:00
mapHandler.h Add "override" to virtual overriden methods 2015-10-13 21:05:36 +03:00
NetPacksClient.cpp Removed includes of CGameState from headers 2015-12-02 21:39:53 +02:00
OSX.mm Attempt to apply patch from stopiccot. 2013-03-01 21:32:26 +00:00
resource.h
SDLMain.h Mac OS patch from stopiccot 2012-12-01 06:30:52 +00:00
SDLMain.m Mac OS patch from stopiccot 2012-12-01 06:30:52 +00:00
StdInc.cpp
StdInc.h Implemented SDL2 unicode input. Hotkeys are sill broken. 2014-06-13 07:55:42 +04:00
VCMI_client.cbp revert some project changes 2016-01-27 15:21:29 +03:00
VCMI_client.rc don't use separate .rc files for MSVC and MinGW 2014-10-12 16:32:02 +03:00
VCMI_client.vcxproj Migrated to SDL2. It also fixes animation speed in combat. 2015-03-10 08:57:45 +01:00
VCMI_client.vcxproj.filters Compile fixes for Visual. 2014-09-05 20:13:58 +02:00
vcmi.icns Mac OS patch from stopiccot 2012-12-01 06:30:52 +00:00
vcmi.ico