summaryrefslogtreecommitdiff
path: root/content/handlers/html/html_internal.h
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-12-01 18:24:33 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2019-12-01 21:25:46 +0000
commit7e6723e27a5bc61d6be9401cd41b644c97bae1e6 (patch)
treed582f6c5ea6dab98f2ab02b9379b3b0c284267fd /content/handlers/html/html_internal.h
parent23b7f7b3331098835395ff1953366ed976c6e3a3 (diff)
downloadnetsurf-7e6723e27a5bc61d6be9401cd41b644c97bae1e6.tar.gz
netsurf-7e6723e27a5bc61d6be9401cd41b644c97bae1e6.tar.bz2
html: Add function for issuing a keypress event.
Diffstat (limited to 'content/handlers/html/html_internal.h')
-rw-r--r--content/handlers/html/html_internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/handlers/html/html_internal.h b/content/handlers/html/html_internal.h
index f24acff82..2ff341038 100644
--- a/content/handlers/html/html_internal.h
+++ b/content/handlers/html/html_internal.h
@@ -404,6 +404,12 @@ nserror html_object_abort_objects(html_content *html);
bool fire_generic_dom_event(dom_string *type, dom_node *target,
bool bubbles, bool cancelable);
+/**
+ * Construct a keyboard event and fire it at the DOM
+ */
+bool fire_dom_keyboard_event(dom_string *type, dom_node *target,
+ bool bubbles, bool cancelable, uint32_t key);
+
/* Useful dom_string pointers */
struct dom_string;