+ return (m_refData != (wxAcceleratorRefData*) NULL);
+}
+
+int wxAcceleratorTable::GetCount() const
+{
+ return M_ACCELDATA->m_count;
+}
+
+wxAcceleratorEntry* wxAcceleratorTable::GetEntries() const
+{
+ return M_ACCELDATA->m_entries;
+}
+
+// Implementation use only
+bool wxAcceleratorEntry::MatchesEvent(const wxKeyEvent& event) const
+{
+ bool eventAltDown = event.AltDown();
+ bool eventCtrlDown = event.ControlDown();
+ bool eventShiftDown = event.ShiftDown();
+ int eventKeyCode = event.GetKeyCode();
+
+ bool accAltDown = ((GetFlags() & wxACCEL_ALT) == wxACCEL_ALT);
+ bool accCtrlDown = ((GetFlags() & wxACCEL_CTRL) == wxACCEL_CTRL);
+ bool accShiftDown = ((GetFlags() & wxACCEL_SHIFT) == wxACCEL_SHIFT);
+ int accKeyCode = GetKeyCode();
+ int accKeyCode2 = GetKeyCode();
+ if (isascii(accKeyCode2))
+ accKeyCode2 = tolower(accKeyCode2);
+
+ return ((eventAltDown == accAltDown) && (eventCtrlDown == accCtrlDown) &&
+ (eventShiftDown == accShiftDown) &&
+ ((eventKeyCode == accKeyCode || eventKeyCode == accKeyCode2))) ;