mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[event] For now only Spidermonkey has implemented (partially) KeyboardEvent
This commit is contained in:
parent
0432913bcb
commit
b45f1480f5
@ -68,6 +68,7 @@ current_link_evhook(struct document_view *doc_view, enum script_event_hook_type
|
|||||||
if (!link) return -1;
|
if (!link) return -1;
|
||||||
if (!doc_view->vs->ecmascript) 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;
|
std::map<int, xmlpp::Element *> *mapa = (std::map<int, xmlpp::Element *> *)doc_view->document->element_map;
|
||||||
|
|
||||||
if (mapa) {
|
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);
|
check_element_event(element->second, event_name, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (!link->event_hooks) return -1;
|
if (!link->event_hooks) return -1;
|
||||||
|
|
||||||
foreach (evhook, *link->event_hooks) {
|
foreach (evhook, *link->event_hooks) {
|
||||||
|
@ -1289,7 +1289,7 @@ try_form_action(struct session *ses, struct document_view *doc_view,
|
|||||||
if (!link_is_textinput(link))
|
if (!link_is_textinput(link))
|
||||||
return FRAME_EVENT_IGNORED;
|
return FRAME_EVENT_IGNORED;
|
||||||
|
|
||||||
#ifdef CONFIG_ECMASCRIPT
|
#ifdef CONFIG_ECMASCRIPT_SMJS
|
||||||
if (ses->insert_mode == INSERT_MODE_ON) {
|
if (ses->insert_mode == INSERT_MODE_ON) {
|
||||||
std::map<int, xmlpp::Element *> *mapa = (std::map<int, xmlpp::Element *> *)doc_view->document->element_map;
|
std::map<int, xmlpp::Element *> *mapa = (std::map<int, xmlpp::Element *> *)doc_view->document->element_map;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user