1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Merge pull request #269 from balducci/master

make it build when CONFIG_ECMASCRIPT is undefined
This commit is contained in:
rkd77 2023-10-24 18:43:41 +02:00 committed by GitHub
commit a9ea05f0de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}