diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-15 12:30:13 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-15 12:30:13 +0000 |
commit | 142cee6f5530d1eeb28a67948dbd38a8acc7b85b (patch) | |
tree | d619e7a38eeb0777ebfd308bd80f8f416c758b84 | |
parent | 5192bf85fa3f234025b32e4d73cdcd9c381c4230 (diff) | |
download | netsurf-142cee6f5530d1eeb28a67948dbd38a8acc7b85b.tar.gz netsurf-142cee6f5530d1eeb28a67948dbd38a8acc7b85b.tar.bz2 |
Fix paste in form inputs in iframes.
svn path=/trunk/netsurf/; revision=12479
-rw-r--r-- | desktop/textinput.c | 5 |
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); } |