- wxAcceleratorEntry* accel = new wxAcceleratorEntry[1];
- accel[0].Set(wxACCEL_CTRL, static_cast<int>('W'), ID_file_close);
- wxAcceleratorTable accel_table (1, accel);
+ int accelerators = 2;
+#else
+ int accelerators = 1;
+#endif
+
+ wxAcceleratorEntry* accel = new wxAcceleratorEntry[accelerators];
+ accel[0].Set(wxACCEL_NORMAL, WXK_SPACE, ID_start_stop);
+#ifdef __WXOSX__
+ accel[1].Set(wxACCEL_CTRL, static_cast<int>('W'), ID_file_close);
+#endif
+ wxAcceleratorTable accel_table (accelerators, accel);