From 1112827be6e11e558a3b6cb3f886ab9179fdac43 Mon Sep 17 00:00:00 2001 From: gabriele balducci Date: Tue, 24 Oct 2023 18:00:11 +0159 Subject: [PATCH] make it build when CONFIG_ECMASCRIPT is undefined --- src/document/html/renderer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c index 4958b259b..ad820537e 100644 --- a/src/document/html/renderer.c +++ b/src/document/html/renderer.c @@ -1455,8 +1455,9 @@ init_link_event_hooks(struct html_context *html_context, struct link *link) add_evhook(link->event_hooks, SEVHOOK_ONKEYUP, elformat.onkeyup); add_evhook(link->event_hooks, SEVHOOK_ONKEYPRESS, elformat.onkeypress); +#ifdef CONFIG_ECMASCRIPT add_evhook(link->event_hooks, SEVHOOK_ONKEYPRESS_BODY, html_context->document->body_onkeypress); - +#endif #undef add_evhook }