we don't talk about that here

This commit is contained in:
Lephenixnoir 2021-05-29 23:45:18 +02:00
parent 3599134898
commit d3bb540905
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ int main(void)
int tab = gscreen_current_tab(scr);
int key = 0;
if(e.type == JSCENE_KEY || e.key.type == KEYEV_DOWN) key = e.key.key;
if(e.type == JSCENE_KEY && e.key.type == KEYEV_DOWN) key = e.key.key;
if(e.type == JSCENE_PAINT) {
dclear(C_WHITE);

View File

@ -218,7 +218,7 @@ static bool fbrowser_poly_event(void *b0, jevent e)
fbrowser *b = b0;
jscene *scene = jscene_owning(b);
int key = (e.type==JSCENE_KEY || e.key.type==KEYEV_DOWN) ? e.key.key : 0;
int key = (e.type==JSCENE_KEY && e.key.type==KEYEV_DOWN) ? e.key.key : 0;
void *f = scene ? jscene_focused_widget(scene) : NULL;
/* Update right panel when moving in the header list */