summaryrefslogtreecommitdiff
path: root/desktop/textinput.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-06-15 12:30:13 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-06-15 12:30:13 +0000
commit142cee6f5530d1eeb28a67948dbd38a8acc7b85b (patch)
treed619e7a38eeb0777ebfd308bd80f8f416c758b84 /desktop/textinput.c
parent5192bf85fa3f234025b32e4d73cdcd9c381c4230 (diff)
downloadnetsurf-142cee6f5530d1eeb28a67948dbd38a8acc7b85b.tar.gz
netsurf-142cee6f5530d1eeb28a67948dbd38a8acc7b85b.tar.bz2
Fix paste in form inputs in iframes.
svn path=/trunk/netsurf/; revision=12479
Diffstat (limited to 'desktop/textinput.c')
-rw-r--r--desktop/textinput.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/textinput.c b/desktop/textinput.c
index f114067f0..4f5d771e3 100644
--- a/desktop/textinput.c
+++ b/desktop/textinput.c
@@ -1329,10 +1329,11 @@ bool browser_window_key_press(struct browser_window *bw, uint32_t key)
bool browser_window_paste_text(struct browser_window *bw, const char *utf8,
unsigned utf8_len, bool last)
{
- if (!bw->paste_callback)
+ if (!bw->focus || !bw->focus->paste_callback)
return false;
- return bw->paste_callback(bw, utf8, utf8_len, last, bw->caret_p);
+ return bw->focus->paste_callback(bw->focus, utf8, utf8_len, last,
+ bw->focus->caret_p);
}