From befa5e6ed356e019fa82b7ebf9be90913aad3edb Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 27 Mar 2015 09:36:19 +0000 Subject: To avoid namespace conflicts with ncurses add NetSurf key prefix. Adds a NetSurf key code prefix of NS_ to all key codes. --- render/box_textarea.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'render/box_textarea.c') diff --git a/render/box_textarea.c b/render/box_textarea.c index b129f1257..aaee47170 100644 --- a/render/box_textarea.c +++ b/render/box_textarea.c @@ -43,14 +43,14 @@ bool box_textarea_keypress(html_content *html, struct box *box, uint32_t key) if (gadget->type != GADGET_TEXTAREA) { switch (key) { - case KEY_NL: - case KEY_CR: + case NS_KEY_NL: + case NS_KEY_CR: if (form) form_submit(content_get_url(c), html->bw, form, 0); return true; - case KEY_TAB: + case NS_KEY_TAB: { struct form_control *next_input; /* Find next text entry field that is actually @@ -71,7 +71,7 @@ bool box_textarea_keypress(html_content *html, struct box *box, uint32_t key) } return true; - case KEY_SHIFT_TAB: + case NS_KEY_SHIFT_TAB: { struct form_control *prev_input; /* Find previous text entry field that is actually -- cgit v1.2.3