diff options
| author | Dusan Durech <dusan@debian.(none)> | 2008-11-26 23:48:52 +0100 |
|---|---|---|
| committer | Dusan Durech <dusan@debian.(none)> | 2008-11-26 23:48:52 +0100 |
| commit | b0df6b04862f36285328ed1be4749a3fa838b7da (patch) | |
| tree | a96daf32c3b4bdd012707c64e1bc891bfffa22d7 /src/client/hotKey.c | |
| parent | ac06fff171f1b600cc9f470e04d58446a03b37ee (diff) | |
ESC should close the chat window - not the game
Diffstat (limited to 'src/client/hotKey.c')
| -rw-r--r-- | src/client/hotKey.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/hotKey.c b/src/client/hotKey.c index 2462140..30287ee 100644 --- a/src/client/hotKey.c +++ b/src/client/hotKey.c @@ -62,13 +62,13 @@ void initHotKey() void registerHotKey(SDLKey key, void (*handler) ()) { hotKey_t *hotkey; - +/* if (findHotkey(key) != NULL) { assert(!"Conflict with register key"); } - +*/ hotkey = newHotKey(key, handler); - addList(listHotKey, hotkey); + insList(listHotKey, 0, hotkey); } void unregisterHotKey(SDLKey key) @@ -138,6 +138,8 @@ void eventHotKey() lastActive = getMyTime(); //printf("hotKey = %d\n", this->key); this->handler(); + + return; } } } |