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:
parent
46dc5a3798
commit
96feb8e49e
1 changed files with 9 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue