From c0c997853f3bf0a2f88a3502328edf579c6afc88 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Wed, 6 Oct 2004 20:11:24 +0000 Subject: [PATCH] Keys to some operations (patch #1037434). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/notebook/notebook.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/samples/notebook/notebook.cpp b/samples/notebook/notebook.cpp index 6a756a19bf..cfa1b98282 100644 --- a/samples/notebook/notebook.cpp +++ b/samples/notebook/notebook.cpp @@ -214,17 +214,17 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size, menuOrient->AppendRadioItem(ID_ORIENT_RIGHT, wxT("&Right\tCtrl-8")); wxMenu *menuDo = new wxMenu; - menuDo->Append(ID_ADD_PAGE, wxT("&Add page")); - menuDo->Append(ID_INSERT_PAGE, wxT("&Insert page")); - menuDo->Append(ID_DELETE_CUR_PAGE, wxT("&Delete current page")); - menuDo->Append(ID_DELETE_LAST_PAGE, wxT("D&elete last page")); - menuDo->Append(ID_NEXT_PAGE, wxT("&Next page")); + menuDo->Append(ID_ADD_PAGE, wxT("&Add page\tAlt-A")); + menuDo->Append(ID_INSERT_PAGE, wxT("&Insert page\tAlt-I")); + menuDo->Append(ID_DELETE_CUR_PAGE, wxT("&Delete current page\tAlt-D")); + menuDo->Append(ID_DELETE_LAST_PAGE, wxT("D&elete last page\tAlt-L")); + menuDo->Append(ID_NEXT_PAGE, wxT("&Next page\tAlt-N")); wxMenu *menuFile = new wxMenu; menuFile->Append(wxID_ANY, wxT("&Type"), menuType, wxT("Type of control")); menuFile->Append(wxID_ANY, wxT("&Orientation"), menuOrient, wxT("Orientation of control")); - menuFile->AppendCheckItem(ID_SHOW_IMAGES, wxT("&Show images")); - menuFile->AppendCheckItem(ID_MULTI, wxT("&Multiple lines")); + menuFile->AppendCheckItem(ID_SHOW_IMAGES, wxT("&Show images\tAlt-S")); + menuFile->AppendCheckItem(ID_MULTI, wxT("&Multiple lines\tAlt-M")); menuFile->AppendSeparator(); menuFile->Append(wxID_EXIT, wxT("E&xit"), wxT("Quits the application")); menuFile->Check(ID_SHOW_IMAGES, m_chkShowImages); @@ -667,8 +667,6 @@ void MyFrame::OnBook(wxBookEvent& event) wxICON_QUESTION | wxYES_NO, this) != wxYES ) \ { \ event.Veto(); \ - \ - return; \ } \ \ } \ @@ -686,8 +684,6 @@ void MyFrame::OnBook(wxBookEvent& event) wxLogMessage(logMsg.c_str()); \ \ m_text->SetInsertionPointEnd(); \ - \ - event.Skip(); \ } #if wxUSE_NOTEBOOK -- 2.45.2