// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "accel.h"
#endif
{
const wxAcceleratorEntry& entry = entries[i];
- int keycode = entry.GetKeyCode();
- if ( wxIslower(keycode) )
- keycode = wxToupper(keycode);
+ int keycode = wxToupper(entry.GetKeyCode());
M_ACCELDATA->m_accels.Append(new wxAcceleratorEntry(entry.GetFlags(),
keycode,
// now check flags
if ( (((flags & wxACCEL_CTRL) != 0) == event.ControlDown()) &&
(((flags & wxACCEL_SHIFT) != 0) == event.ShiftDown()) &&
- (((flags & wxACCEL_ALT) != 0) ==
- (event.AltDown() || event.MetaDown())) )
+ (((flags & wxACCEL_ALT) != 0) == event.AltDown()) )
{
return entry;
}