hopefully the last time key events are a problem

This commit is contained in:
Lephenixnoir 2021-05-30 10:43:15 +02:00
parent d3bb540905
commit ef59e956bb
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 == JWIDGET_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==JWIDGET_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 */