diff --git a/framebuffer/fbtk/osk.c b/framebuffer/fbtk/osk.c index 36fb765d3..8e6ee5185 100644 --- a/framebuffer/fbtk/osk.c +++ b/framebuffer/fbtk/osk.c @@ -113,7 +113,7 @@ static fbtk_widget_t *osk; static int osk_close(fbtk_widget_t *widget, fbtk_callback_info *cbi) { - if (cbi->event->type != NSFB_EVENT_KEY_DOWN) + if (cbi->event->type != NSFB_EVENT_KEY_UP) return 0; fbtk_set_mapping(osk, false); diff --git a/framebuffer/gui.c b/framebuffer/gui.c index 301bd2e93..3da849421 100644 --- a/framebuffer/gui.c +++ b/framebuffer/gui.c @@ -771,7 +771,7 @@ fb_leftarrow_click(fbtk_widget_t *widget, fbtk_callback_info *cbi) struct gui_window *gw = cbi->context; struct browser_window *bw = gw->bw; - if (cbi->event->type != NSFB_EVENT_KEY_DOWN) + if (cbi->event->type != NSFB_EVENT_KEY_UP) return 0; if (history_back_available(bw->history)) @@ -789,7 +789,7 @@ fb_rightarrow_click(fbtk_widget_t *widget, fbtk_callback_info *cbi) struct gui_window *gw = cbi->context; struct browser_window *bw = gw->bw; - if (cbi->event->type != NSFB_EVENT_KEY_DOWN) + if (cbi->event->type != NSFB_EVENT_KEY_UP) return 0; if (history_forward_available(bw->history)) @@ -806,7 +806,7 @@ fb_reload_click(fbtk_widget_t *widget, fbtk_callback_info *cbi) { struct browser_window *bw = cbi->context; - if (cbi->event->type != NSFB_EVENT_KEY_DOWN) + if (cbi->event->type != NSFB_EVENT_KEY_UP) return 0; browser_window_reload(bw, true); @@ -819,7 +819,7 @@ fb_stop_click(fbtk_widget_t *widget, fbtk_callback_info *cbi) { struct browser_window *bw = cbi->context; - if (cbi->event->type != NSFB_EVENT_KEY_DOWN) + if (cbi->event->type != NSFB_EVENT_KEY_UP) return 0; browser_window_stop(bw); @@ -830,7 +830,7 @@ static int fb_osk_click(fbtk_widget_t *widget, fbtk_callback_info *cbi) { - if (cbi->event->type != NSFB_EVENT_KEY_DOWN) + if (cbi->event->type != NSFB_EVENT_KEY_UP) return 0; map_osk(); @@ -842,7 +842,7 @@ fb_osk_click(fbtk_widget_t *widget, fbtk_callback_info *cbi) static int fb_close_click(fbtk_widget_t *widget, fbtk_callback_info *cbi) { - if (cbi->event->type != NSFB_EVENT_KEY_DOWN) + if (cbi->event->type != NSFB_EVENT_KEY_UP) return 0; netsurf_quit = true; @@ -896,7 +896,7 @@ fb_localhistory_btn_clik(fbtk_widget_t *widget, fbtk_callback_info *cbi) { struct gui_window *gw = cbi->context; - if (cbi->event->type != NSFB_EVENT_KEY_DOWN) + if (cbi->event->type != NSFB_EVENT_KEY_UP) return 0; fb_localhistory_map(gw->localhistory); diff --git a/framebuffer/localhistory.c b/framebuffer/localhistory.c index 76e4bd989..d8f2b048d 100644 --- a/framebuffer/localhistory.c +++ b/framebuffer/localhistory.c @@ -88,7 +88,7 @@ localhistory_click(fbtk_widget_t *widget, fbtk_callback_info *cbi) { struct gui_localhistory *glh = cbi->context; - if (cbi->event->type != NSFB_EVENT_KEY_DOWN) + if (cbi->event->type != NSFB_EVENT_KEY_UP) return 0; history_click(glh->bw, glh->bw->history, cbi->x, cbi->y, false);