The dispatch-behind & whitelist stuff got broken again, so I've

retired them in favour of a much dumber hack that special-cases
only ctrl-U for units switch.
This commit is contained in:
Jeff Young
2020-06-24 12:22:42 +01:00
parent 1a7c270dcd
commit 5ee806c3a3
8 changed files with 22 additions and 35 deletions
+2 -3
View File
@@ -767,11 +767,10 @@ bool TOOL_MANAGER::dispatchInternal( const TOOL_EVENT& aEvent )
}
bool TOOL_MANAGER::DispatchHotKey( const TOOL_EVENT& aEvent,
std::set<const TOOL_ACTION*>* aWhiteList )
bool TOOL_MANAGER::DispatchHotKey( const TOOL_EVENT& aEvent )
{
if( aEvent.Action() == TA_KEY_PRESSED )
return m_actionMgr->RunHotKey( aEvent.Modifier() | aEvent.KeyCode(), aWhiteList );
return m_actionMgr->RunHotKey( aEvent.Modifier() | aEvent.KeyCode() );
return false;
}