Check if WX recognized a key before testing if it's a hotkey
Fixes issue 5537.
This commit is contained in:
parent
b3c9f437db
commit
fe1501db9a
|
@ -797,8 +797,9 @@ void CFrame::OnGameListCtrl_ItemActivated(wxListEvent& WXUNUSED (event))
|
||||||
|
|
||||||
bool IsHotkey(wxKeyEvent &event, int Id)
|
bool IsHotkey(wxKeyEvent &event, int Id)
|
||||||
{
|
{
|
||||||
return (event.GetKeyCode() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkey[Id] &&
|
return (event.GetKeyCode() &&
|
||||||
event.GetModifiers() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkeyModifier[Id]);
|
event.GetKeyCode() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkey[Id] &&
|
||||||
|
event.GetModifiers() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkeyModifier[Id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetCmdForHotkey(unsigned int key)
|
int GetCmdForHotkey(unsigned int key)
|
||||||
|
|
Loading…
Reference in New Issue