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:
parent
e3141a349e
commit
119a78753d
@ -93,7 +93,8 @@ int wxAcceleratorTable::GetCommand( wxKeyEvent &event )
|
|||||||
if ((event.m_keyCode == entry->GetKeyCode()) &&
|
if ((event.m_keyCode == entry->GetKeyCode()) &&
|
||||||
(((entry->GetFlags() & wxACCEL_CTRL) == 0) || event.ControlDown()) &&
|
(((entry->GetFlags() & wxACCEL_CTRL) == 0) || event.ControlDown()) &&
|
||||||
(((entry->GetFlags() & wxACCEL_SHIFT) == 0) || event.ShiftDown()) &&
|
(((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();
|
return entry->GetCommand();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user