mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-06 23:44:43 -04:00
[view] try key events only when INSERT_MODE is ON
This commit is contained in:
parent
ada4ebd842
commit
127b2f403b
@ -1290,6 +1290,7 @@ try_form_action(struct session *ses, struct document_view *doc_view,
|
||||
return FRAME_EVENT_IGNORED;
|
||||
|
||||
#ifdef CONFIG_ECMASCRIPT
|
||||
if (ses->insert_mode == INSERT_MODE_ON) {
|
||||
std::map<int, xmlpp::Element *> *mapa = (std::map<int, xmlpp::Element *> *)doc_view->document->element_map;
|
||||
|
||||
if (mapa) {
|
||||
@ -1310,6 +1311,7 @@ try_form_action(struct session *ses, struct document_view *doc_view,
|
||||
if (status != FRAME_EVENT_IGNORED && !current_link_evhook(doc_view, SEVHOOK_ONKEYUP)) {
|
||||
status = FRAME_EVENT_IGNORED;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (status != FRAME_EVENT_IGNORED) {
|
||||
status = field_op(ses, doc_view, link, ev);
|
||||
|
Loading…
Reference in New Issue
Block a user