diff options
| author | oy <Tom_Adams@web.de> | 2010-09-12 13:40:24 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-09-12 13:40:24 +0200 |
| commit | 5437513a0d0101fe45137f2ad6d7086a94766cfe (patch) | |
| tree | f471c0fa4fc82211e9be47285ae3197c1c2a223f /src/game/client/components/menus.cpp | |
| parent | 64c9b5c4abf8b96aac2ad5078a845ea8167e0907 (diff) | |
| download | zcatch-5437513a0d0101fe45137f2ad6d7086a94766cfe.tar.gz zcatch-5437513a0d0101fe45137f2ad6d7086a94766cfe.zip | |
use escape key to abort binding a control key in the menu
Diffstat (limited to 'src/game/client/components/menus.cpp')
| -rw-r--r-- | src/game/client/components/menus.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 05817d3a..2341ba5e 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -459,7 +459,9 @@ int CMenus::DoKeyReader(void *pID, const CUIRect *pRect, int Key) { if(m_Binder.m_GotKey) { - NewKey = m_Binder.m_Key.m_Key; + // abort with escape key + if(m_Binder.m_Key.m_Key != KEY_ESCAPE) + NewKey = m_Binder.m_Key.m_Key; m_Binder.m_GotKey = false; UI()->SetActiveItem(0); MouseReleased = false; |