summaryrefslogtreecommitdiffstats
path: root/WebKit/wx/WebBrowserShell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/wx/WebBrowserShell.cpp')
-rw-r--r--WebKit/wx/WebBrowserShell.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/WebKit/wx/WebBrowserShell.cpp b/WebKit/wx/WebBrowserShell.cpp
index d2a30d5..8853051 100644
--- a/WebKit/wx/WebBrowserShell.cpp
+++ b/WebKit/wx/WebBrowserShell.cpp
@@ -67,6 +67,9 @@ enum {
};
BEGIN_EVENT_TABLE(wxWebBrowserShell, wxFrame)
+ EVT_MENU(wxID_CUT, wxWebBrowserShell::OnCut)
+ EVT_MENU(wxID_COPY, wxWebBrowserShell::OnCopy)
+ EVT_MENU(wxID_PASTE, wxWebBrowserShell::OnPaste)
EVT_MENU(wxID_EXIT, wxWebBrowserShell::OnQuit)
EVT_MENU(wxID_ABOUT, wxWebBrowserShell::OnAbout)
EVT_MENU(ID_LOADFILE, wxWebBrowserShell::OnLoadFile)
@@ -252,6 +255,24 @@ void wxWebBrowserShell::OnSearchCtrlEnter(wxCommandEvent& event)
}
}
+void wxWebBrowserShell::OnCut(wxCommandEvent& event)
+{
+ if (webview && webview->CanCut())
+ webview->Cut();
+}
+
+void wxWebBrowserShell::OnCopy(wxCommandEvent& event)
+{
+ if (webview && webview->CanCopy())
+ webview->Copy();
+}
+
+void wxWebBrowserShell::OnPaste(wxCommandEvent& event)
+{
+ if (webview && webview->CanPaste())
+ webview->Paste();
+}
+
void wxWebBrowserShell::OnBack(wxCommandEvent& event)
{
if (webview)