mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 23:09:43 +03:00
Fix paste in form inputs in iframes.
svn path=/trunk/netsurf/; revision=12479
This commit is contained in:
parent
5192bf85fa
commit
142cee6f55
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user