summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.h2
-rw-r--r--src/widget/widget_catchkey.c10
2 files changed, 10 insertions, 2 deletions
diff --git a/config.h b/config.h
index cdda500..4001622 100644
--- a/config.h
+++ b/config.h
@@ -1 +1 @@
-#define TUXANCI_NG_VERSION "svn179"
+#define TUXANCI_NG_VERSION "svn180"
diff --git a/src/widget/widget_catchkey.c b/src/widget/widget_catchkey.c
index df5a537..5b6f82d 100644
--- a/src/widget/widget_catchkey.c
+++ b/src/widget/widget_catchkey.c
@@ -16,6 +16,7 @@ widget_catchkey_t* newWidgetCatchkey(int key, int x, int y, void *event)
new->y = y;
new->key = key;
new->fce_event = event;
+ new->active = FALSE;
return new;
}
@@ -56,8 +57,15 @@ static int getPessAnyKey()
mapa = SDL_GetKeyState(NULL);
- for( i = SDLK_FIRST ; i <= SDLK_F15 ; i++ )
+ for( i = SDLK_FIRST ; i <= SDLK_COMPOSE ; i++ )
{
+ if( i == SDLK_NUMLOCK || // black key
+ i == SDLK_CAPSLOCK ||
+ i == SDLK_SCROLLOCK )
+ {
+ continue;
+ }
+
if( mapa[i] == SDL_PRESSED )
{
return i;