summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-08-18 22:19:42 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-08-18 22:19:42 +0100
commit45755a9e0d991a116f2d53a0e178a4e3dc5d06e6 (patch)
treeb1546eecf0a85aff4ec039200dc17adc508591b7 /render
parenta2906b39943dc078654f2f1dc5d122221d826d9a (diff)
downloadnetsurf-45755a9e0d991a116f2d53a0e178a4e3dc5d06e6.tar.gz
netsurf-45755a9e0d991a116f2d53a0e178a4e3dc5d06e6.tar.bz2
Use paste content msg.
Diffstat (limited to 'render')
-rw-r--r--render/textinput.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/render/textinput.c b/render/textinput.c
index 6c580a8cd..98746bca1 100644
--- a/render/textinput.c
+++ b/render/textinput.c
@@ -1308,13 +1308,16 @@ bool textinput_textarea_callback(struct browser_window *bw, uint32_t key,
break;
case KEY_PASTE:
- gui_paste_from_clipboard(bw->window,
- box_x + inline_container->x +
- text_box->x + pixel_offset,
- box_y + inline_container->y + text_box->y);
+ {
+ union content_msg_data msg_data;
+ msg_data.paste.x = box_x + inline_container->x +
+ text_box->x + pixel_offset;
+ msg_data.paste.y = box_y + inline_container->y + text_box->y;
+ content_broadcast(c, CONTENT_MSG_PASTE, msg_data);
/* screen updated and caret repositioned already */
return true;
+ }
case KEY_CUT_SELECTION:
{
@@ -1949,12 +1952,16 @@ bool textinput_input_callback(struct browser_window *bw, uint32_t key,
break;
case KEY_PASTE:
- gui_paste_from_clipboard(bw->window,
- box_x + input->children->x + text_box->x + pixel_offset,
- box_y + input->children->y + text_box->y);
+ {
+ union content_msg_data msg_data;
+ msg_data.paste.x = box_x + input->children->x + text_box->x +
+ pixel_offset;
+ msg_data.paste.y = box_y + input->children->y + text_box->y;
+ content_broadcast(c, CONTENT_MSG_PASTE, msg_data);
/* screen updated and caret repositioned already */
return true;
+ }
case KEY_CUT_SELECTION:
{