From b0df6b04862f36285328ed1be4749a3fa838b7da Mon Sep 17 00:00:00 2001 From: Dusan Durech Date: Wed, 26 Nov 2008 23:48:52 +0100 Subject: ESC should close the chat window - not the game --- src/client/hotKey.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/client/hotKey.c') 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; } } } -- cgit v1.2.3