[evolution/wip/webkit2] EEditorDOMFunction - Space and Return key needs to be reset when another key is pressed
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EEditorDOMFunction - Space and Return key needs to be reset when another key is pressed
- Date: Tue, 12 Jul 2016 14:47:01 +0000 (UTC)
commit f7415430a8bf712680f29b3e399a2c6f011c779b
Author: Tomas Popela <tpopela redhat com>
Date: Tue Jul 12 15:36:31 2016 +0200
EEditorDOMFunction - Space and Return key needs to be reset when another key is pressed
Otherwise the links recognition is broken.
.../web-extension/e-editor-dom-functions.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
index db8b36f..ca5c142 100644
--- a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -2895,15 +2895,15 @@ body_keydown_event_cb (WebKitDOMElement *element,
e_editor_page_set_dont_save_history_in_body_input (editor_page, delete_key || backspace_key);
+ e_editor_page_set_return_key_pressed (editor_page, return_key);
+ e_editor_page_set_space_key_pressed (editor_page, space_key);
+
if (!(delete_key || return_key || backspace_key || space_key))
return;
shift_key = webkit_dom_keyboard_event_get_shift_key (WEBKIT_DOM_KEYBOARD_EVENT (event));
control_key = webkit_dom_keyboard_event_get_ctrl_key (WEBKIT_DOM_KEYBOARD_EVENT (event));
- e_editor_page_set_return_key_pressed (editor_page, return_key);
- e_editor_page_set_space_key_pressed (editor_page, space_key);
-
if (key_code == HTML_KEY_CODE_TABULATOR) {
if (jump_to_next_table_cell (document, shift_key)) {
webkit_dom_event_prevent_default (WEBKIT_DOM_EVENT (event));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]