More work from Ankit. Sending too a release event, so it doesn't scroll to the end in tool options.

This commit is contained in:
Pere Pujal i Carabantes 2010-06-29 09:31:46 +00:00
parent 46dc5a3798
commit 96feb8e49e

View file

@ -2064,6 +2064,15 @@ static void mainloop(void)
key = event.key.keysym.sym;
handle_keymouse(key, SDL_KEYUP);
if (key == SDLK_BACKSLASH)
{
ev.which = 0;
ev.type = SDL_MOUSEBUTTONUP;
ev.state = SDL_RELEASED;
ev.button = SDL_BUTTON_LEFT;
SDL_PushEvent(&ev);
}
}
else if (event.type == SDL_KEYDOWN)