summaryrefslogtreecommitdiff
path: root/beos/beos_window.cpp
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-08 20:08:54 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-08 20:08:54 +0000
commitc31a54788e70312c7c5d047b3f3f4be31541be51 (patch)
tree54bfce7b795fa010da5d6469e4801068ec72b74a /beos/beos_window.cpp
parentbc3b994817e5752f598a207d6021dc0c0496092d (diff)
downloadnetsurf-c31a54788e70312c7c5d047b3f3f4be31541be51.tar.gz
netsurf-c31a54788e70312c7c5d047b3f3f4be31541be51.tar.bz2
Add clipboard support. Works mostly.
svn path=/trunk/netsurf/; revision=5507
Diffstat (limited to 'beos/beos_window.cpp')
-rw-r--r--beos/beos_window.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/beos/beos_window.cpp b/beos/beos_window.cpp
index da1b5ef85..b30a80453 100644
--- a/beos/beos_window.cpp
+++ b/beos/beos_window.cpp
@@ -141,7 +141,10 @@ NSBrowserFrameView::MessageReceived(BMessage *message)
switch (message->what) {
case B_SIMPLE_DATA:
case B_REFS_RECEIVED:
- message->PrintToStream();
+ case B_COPY:
+ case B_CUT:
+ case B_PASTE:
+ case B_SELECT_ALL:
//case B_MOUSE_WHEEL_CHANGED:
// messages for top-level
case 'back':
@@ -229,6 +232,7 @@ NSBrowserFrameView::MessageReceived(BMessage *message)
nsbeos_pipe_message_top(message, NULL, fGuiWindow->scaffold);
break;
default:
+ message->PrintToStream();
BView::MessageReceived(message);
}
}
@@ -1778,7 +1782,7 @@ bool gui_commit_clipboard(void)
if (clip) {
clip->AddData("text/plain", B_MIME_TYPE,
current_selection.String(),
- current_selection.Length() + 1);
+ current_selection.Length());
gui_empty_clipboard();
be_clipboard->Commit();
}