diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-04-08 12:40:05 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-04-08 12:40:05 +0000 |
commit | 84cd9a655f42642b3e6084e0844e6ca0d1da1a2e (patch) | |
tree | 74854e5a7b4961141670c7f46b01831dbb7a3e7e /desktop/selection.c | |
parent | 90e061c6a9cd8c762df0609406a9e4fac8e305c3 (diff) | |
download | netsurf-84cd9a655f42642b3e6084e0844e6ca0d1da1a2e.tar.gz netsurf-84cd9a655f42642b3e6084e0844e6ca0d1da1a2e.tar.bz2 |
Improve click handling in text inputs.
svn path=/trunk/netsurf/; revision=4087
Diffstat (limited to 'desktop/selection.c')
-rw-r--r-- | desktop/selection.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/desktop/selection.c b/desktop/selection.c index 168d28673..9dd58ce4f 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -49,8 +49,6 @@ * or wholly without the textarea/input box. */ -#define IS_TEXT(box) ((box)->text && !(box)->object) - #define IS_INPUT(box) ((box) && (box)->gadget && \ ((box)->gadget->type == GADGET_TEXTAREA || (box)->gadget->type == GADGET_TEXTBOX)) @@ -223,7 +221,7 @@ unsigned selection_label_subtree(struct box *box, unsigned idx) box->byte_offset = idx; - if (box->text && !box->object) + if (box->text) idx += box->length + box->space; while (child) { @@ -847,7 +845,7 @@ struct box *get_box(struct box *b, unsigned offset, int *pidx) { struct box *child = b->children; - if (b->text && !b->object) { + if (b->text) { if (offset >= b->byte_offset && offset < b->byte_offset + b->length + b->space) { |