Selection: refactor modifier checking

This commit is contained in:
Mike Williams
2022-12-08 14:12:12 -05:00
parent 78b5dbead6
commit 0e75bf02fa
5 changed files with 19 additions and 13 deletions
+6
View File
@@ -83,6 +83,12 @@ void SELECTION_TOOL::setModifiersState( bool aShiftState, bool aCtrlState, bool
}
bool SELECTION_TOOL::hasModifier()
{
return m_subtractive || m_additive || m_exclusive_or;
}
int SELECTION_TOOL::UpdateMenu( const TOOL_EVENT& aEvent )
{
ACTION_MENU* actionMenu = aEvent.Parameter<ACTION_MENU*>();