From 7e6723e27a5bc61d6be9401cd41b644c97bae1e6 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 1 Dec 2019 18:24:33 +0000 Subject: html: Add function for issuing a keypress event. --- content/handlers/html/html_internal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'content/handlers/html/html_internal.h') 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; -- cgit v1.2.3