summaryrefslogtreecommitdiff
path: root/beos/beos_scaffolding.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_scaffolding.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_scaffolding.cpp')
-rw-r--r--beos/beos_scaffolding.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/beos/beos_scaffolding.cpp b/beos/beos_scaffolding.cpp
index e0b3af943..1e132e15f 100644
--- a/beos/beos_scaffolding.cpp
+++ b/beos/beos_scaffolding.cpp
@@ -46,6 +46,7 @@ extern "C" {
#include "desktop/netsurf.h"
#include "desktop/plotters.h"
#include "desktop/options.h"
+#include "desktop/selection.h"
#include "desktop/textinput.h"
#include "render/box.h"
#include "render/font.h"
@@ -429,6 +430,19 @@ void nsbeos_scaffolding_dispatch_event(nsbeos_scaffolding *scaffold, BMessage *m
browser_window_go(bw, url.String(), 0, true);
break;
}
+ case B_COPY:
+ gui_copy_to_clipboard(bw->sel);
+ break;
+ case B_CUT:
+ browser_window_key_press(bw, 24);
+ break;
+ case B_PASTE:
+ gui_paste_from_clipboard(scaffold->top_level, 0, 0);
+ break;
+ case B_SELECT_ALL:
+ LOG(("Selecting all text"));
+ selection_select_all(bw->sel);
+ break;
case BROWSER_NAVIGATE_BACK:
case 'back':
if (!history_back_available(bw->history))