From 4313374ab089ce5b2ec5f0901c88ef1e05a05b11 Mon Sep 17 00:00:00 2001 From: Pere Pujal i Carabantes Date: Sat, 28 Jun 2014 23:07:32 +0000 Subject: [PATCH] Adding F5 as a key to emulate mouse clicks. Found a laptop that doen't has the [Insert] key. --- src/tuxpaint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 252670808..62a52c81a 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -16729,7 +16729,7 @@ static void handle_keymouse(SDLKey key, Uint8 updown, int steps, SDL_Rect *area1 if (updown == SDL_KEYUP) { - if (key == SDLK_INSERT || + if (key == SDLK_INSERT || key == SDLK_F5 || ((cur_tool != TOOL_TEXT && cur_tool != TOOL_LABEL) && (key == SDLK_SPACE || key == SDLK_5 || key == SDLK_KP5))) @@ -16756,7 +16756,7 @@ static void handle_keymouse(SDLKey key, Uint8 updown, int steps, SDL_Rect *area1 else if (key == SDLK_DOWN) SDL_WarpMouse(oldpos_x, bottom); - else if (key == SDLK_INSERT && !button_down) + else if ((key == SDLK_INSERT || key == SDLK_F5) && !button_down) { event.type = SDL_MOUSEBUTTONDOWN; event.button.x = oldpos_x;