1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

make it build when CONFIG_ECMASCRIPT is undefined

This commit is contained in:
gabriele balducci 2023-10-24 18:00:11 +01:59
parent f12134c2cf
commit 1112827be6

View File

@ -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
}