diff options
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c index 50dcdf7d7..1d77d0d2d 100644 --- a/src/command.c +++ b/src/command.c @@ -175,8 +175,6 @@ static command_definition_t cmds[] = N_("Clock screen") }, #endif - - { { -1, -1, -1 }, 0, CMD_NONE, NULL, NULL } }; @@ -396,6 +394,11 @@ get_keyboard_command_with_timeout(int ms) if( key==ERR ) return CMD_NONE; +#ifdef HAVE_GETMOUSE + if( key==KEY_MOUSE ) + return CMD_MOUSE_EVENT; +#endif + return get_key_command(key); } |