adding command key accelerator

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2006-08-29 09:29:26 +00:00
parent e3141a349e
commit 119a78753d

View File

@ -93,7 +93,8 @@ int wxAcceleratorTable::GetCommand( wxKeyEvent &event )
if ((event.m_keyCode == entry->GetKeyCode()) &&
(((entry->GetFlags() & wxACCEL_CTRL) == 0) || event.ControlDown()) &&
(((entry->GetFlags() & wxACCEL_SHIFT) == 0) || event.ShiftDown()) &&
(((entry->GetFlags() & wxACCEL_ALT) == 0) || event.AltDown() || event.MetaDown()))
(((entry->GetFlags() & wxACCEL_ALT) == 0) || event.AltDown()) &&
(((entry->GetFlags() & wxACCEL_CMD) == 0) || event.CmdDown()))
{
return entry->GetCommand();
}