Ticket #22295: patch-src_MathCtrl.cpp.2.diff
File patch-src_MathCtrl.cpp.2.diff, 862 bytes (added by usami-k@…, 15 years ago) |
---|
-
src/MathCtrl.cpp
old new 1130 1130 case WXK_BACK: 1131 1131 if (CanDeleteSelection()) { 1132 1132 wxCommandEvent ev(wxEVT_COMMAND_MENU_SELECTED, popid_delete); 1133 #if wxCHECK_VERSION(2,9,0) 1134 GetParent()->ProcessWindowEvent(ev); 1135 #else 1133 1136 GetParent()->ProcessEvent(ev); 1137 #endif 1134 1138 } else 1135 1139 event.Skip(); 1136 1140 break; … … 1145 1149 enterEvaluates && !(event.ControlDown() || event.ShiftDown())) 1146 1150 { // shift-enter pressed === menu_evaluate event 1147 1151 wxCommandEvent ev(wxEVT_COMMAND_MENU_SELECTED, menu_evaluate); 1152 #if wxCHECK_VERSION(2,9,0) 1153 GetParent()->ProcessWindowEvent(ev); 1154 #else 1148 1155 GetParent()->ProcessEvent(ev); 1156 #endif 1149 1157 } else 1150 1158 event.Skip(); 1151 1159 }