1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-26 01:15:37 +00:00

[event] For now only Spidermonkey has implemented (partially) KeyboardEvent

This commit is contained in:
Witold Filipczyk 2022-11-10 19:44:48 +01:00
parent 0432913bcb
commit b45f1480f5
2 changed files with 3 additions and 2 deletions

View File

@ -68,6 +68,7 @@ current_link_evhook(struct document_view *doc_view, enum script_event_hook_type
if (!link) return -1;
if (!doc_view->vs->ecmascript) return -1;
#ifdef CONFIG_ECMASCRIPT_SMJS
std::map<int, xmlpp::Element *> *mapa = (std::map<int, xmlpp::Element *> *)doc_view->document->element_map;
if (mapa) {
@ -78,7 +79,7 @@ current_link_evhook(struct document_view *doc_view, enum script_event_hook_type
check_element_event(element->second, event_name, NULL);
}
}
#endif
if (!link->event_hooks) return -1;
foreach (evhook, *link->event_hooks) {

View File

@ -1289,7 +1289,7 @@ try_form_action(struct session *ses, struct document_view *doc_view,
if (!link_is_textinput(link))
return FRAME_EVENT_IGNORED;
#ifdef CONFIG_ECMASCRIPT
#ifdef CONFIG_ECMASCRIPT_SMJS
if (ses->insert_mode == INSERT_MODE_ON) {
std::map<int, xmlpp::Element *> *mapa = (std::map<int, xmlpp::Element *> *)doc_view->document->element_map;