mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-11 14:43:57 +00:00
[client] main: better UX with the escape key combinations
This commit is contained in:
parent
196b27ee9c
commit
bffd02b8c7
2 changed files with 5 additions and 4 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
a12-228-gff08540fd3+1
|
a12-229-g196b27ee9c+1
|
|
@ -681,7 +681,7 @@ int eventFilter(void * userdata, SDL_Event * event)
|
||||||
if (sc == params.escapeKey)
|
if (sc == params.escapeKey)
|
||||||
{
|
{
|
||||||
state.escapeActive = true;
|
state.escapeActive = true;
|
||||||
state.escapeAction = sc;
|
state.escapeAction = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -716,7 +716,7 @@ int eventFilter(void * userdata, SDL_Event * event)
|
||||||
SDL_Scancode sc = event->key.keysym.scancode;
|
SDL_Scancode sc = event->key.keysym.scancode;
|
||||||
if (state.escapeActive)
|
if (state.escapeActive)
|
||||||
{
|
{
|
||||||
if (state.escapeAction == params.escapeKey)
|
if (state.escapeAction == -1)
|
||||||
{
|
{
|
||||||
if (params.useSpiceInput)
|
if (params.useSpiceInput)
|
||||||
{
|
{
|
||||||
|
@ -742,6 +742,7 @@ int eventFilter(void * userdata, SDL_Event * event)
|
||||||
handle->callback(sc, handle->opaque);
|
handle->callback(sc, handle->opaque);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sc == params.escapeKey)
|
||||||
state.escapeActive = false;
|
state.escapeActive = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue