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:
commit
a9ea05f0de
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user