Added Undo, Redo accelerators for wxRTC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -256,14 +256,16 @@ bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& va
|
||||
GetBuffer().AddEventHandler(this);
|
||||
|
||||
// Accelerators
|
||||
wxAcceleratorEntry entries[4];
|
||||
wxAcceleratorEntry entries[6];
|
||||
|
||||
entries[0].Set(wxACCEL_CMD, (int) 'C', wxID_COPY);
|
||||
entries[1].Set(wxACCEL_CMD, (int) 'X', wxID_CUT);
|
||||
entries[2].Set(wxACCEL_CMD, (int) 'V', wxID_PASTE);
|
||||
entries[3].Set(wxACCEL_CMD, (int) 'A', wxID_SELECTALL);
|
||||
entries[4].Set(wxACCEL_CMD, (int) 'Z', wxID_UNDO);
|
||||
entries[5].Set(wxACCEL_CMD, (int) 'Y', wxID_REDO);
|
||||
|
||||
wxAcceleratorTable accel(4, entries);
|
||||
wxAcceleratorTable accel(6, entries);
|
||||
SetAcceleratorTable(accel);
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user