summaryrefslogtreecommitdiff
path: root/beos/beos_scaffolding.cpp
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-02 17:20:06 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-02 17:20:06 +0000
commit0f7122113436b2c019489957fc53cda05293a5d7 (patch)
tree381d9b3c0d820f18fda3b2aeb633b1c602420f17 /beos/beos_scaffolding.cpp
parentd2f5d19da68c376161b30f3651c92e89036bf34e (diff)
downloadnetsurf-0f7122113436b2c019489957fc53cda05293a5d7.tar.gz
netsurf-0f7122113436b2c019489957fc53cda05293a5d7.tar.bz2
Add window shortcuts for toolbar actions.
svn path=/trunk/netsurf/; revision=5473
Diffstat (limited to 'beos/beos_scaffolding.cpp')
-rw-r--r--beos/beos_scaffolding.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/beos/beos_scaffolding.cpp b/beos/beos_scaffolding.cpp
index 521898f96..859e416ae 100644
--- a/beos/beos_scaffolding.cpp
+++ b/beos/beos_scaffolding.cpp
@@ -1155,6 +1155,28 @@ void nsbeos_attach_toplevel_view(nsbeos_scaffolding *g, BView *view)
}
}
+ // add toolbar shortcuts
+ BMessage *msg;
+
+ msg = new BMessage('back');
+ msg->AddPointer("scaffolding", g);
+ g->window->AddShortcut(B_LEFT_ARROW, 0, msg, view);
+
+ msg = new BMessage('forw');
+ msg->AddPointer("scaffolding", g);
+ g->window->AddShortcut(B_RIGHT_ARROW, 0, msg, view);
+
+ msg = new BMessage('stop');
+ msg->AddPointer("scaffolding", g);
+ g->window->AddShortcut('S', 0, msg, view);
+
+ msg = new BMessage('relo');
+ msg->AddPointer("scaffolding", g);
+ g->window->AddShortcut('R', 0, msg, view);
+
+ msg = new BMessage('home');
+ msg->AddPointer("scaffolding", g);
+ g->window->AddShortcut('H', 0, msg, view);
if (g->window)
g->window->Show();