diff options
Diffstat (limited to 'content/handlers/html/html_interaction.c')
-rw-r--r-- | content/handlers/html/html_interaction.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/content/handlers/html/html_interaction.c b/content/handlers/html/html_interaction.c index d31ad1d06..1eedf1b8f 100644 --- a/content/handlers/html/html_interaction.c +++ b/content/handlers/html/html_interaction.c @@ -1119,16 +1119,17 @@ bool html_keypress(struct content *c, uint32_t key) { html_content *html = (html_content *) c; struct selection *sel = &html->sel; - struct box *box; switch (html->focus_type) { case HTML_FOCUS_CONTENT: - box = html->focus_owner.content; - return content_keypress(box->object, key); + return content_keypress(html->focus_owner.content->object, key); case HTML_FOCUS_TEXTAREA: - box = html->focus_owner.textarea; - return box_textarea_keypress(html, box, key); + if (box_textarea_keypress(html, html->focus_owner.textarea, key) == NSERROR_OK) { + return true; + } else { + return false; + } default: /* Deal with it below */ |