diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-04-08 23:46:41 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-04-08 23:46:41 +0000 |
commit | 9de746e0a00ad6055a0d4797cd66c1b62b4cc5d6 (patch) | |
tree | fd4e5f227170a7178e4ea4dd713339532e0859ca /render | |
parent | 13f1dde4d938d02f3bc5effd3f8a4cba71c2847f (diff) | |
download | netsurf-9de746e0a00ad6055a0d4797cd66c1b62b4cc5d6.tar.gz netsurf-9de746e0a00ad6055a0d4797cd66c1b62b4cc5d6.tar.bz2 |
[project @ 2004-04-08 23:46:41 by jmb]
Improve keypress handling in form text boxes.
Note: Not yet implemented for textareas as these need more work anyway.
svn path=/import/netsurf/; revision=740
Diffstat (limited to 'render')
-rw-r--r-- | render/form.c | 1 | ||||
-rw-r--r-- | render/form.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/render/form.c b/render/form.c index 8f18d44ae..c542efd3e 100644 --- a/render/form.c +++ b/render/form.c @@ -31,6 +31,7 @@ void form_add_control(struct form *form, struct form_control *control) if (form->controls) { assert(form->last_control); form->last_control->next = control; + control->prev = form->last_control; control->next = 0; form->last_control = control; } else { diff --git a/render/form.h b/render/form.h index 0063df790..b064e9750 100644 --- a/render/form.h +++ b/render/form.h @@ -67,6 +67,7 @@ struct form_control { int selected; } radio; } data; + struct form_control *prev; /**< Previous control in this form */ struct form_control *next; /**< Next control in this form. */ }; |