private bool RectSelectionModeFromEvent()
{
Event current = Event.current;
RectSelectionMode replace = RectSelectionMode.Replace;
if (current.shift)
{
replace = RectSelectionMode.Add;
}
if (current.alt)
{
replace = RectSelectionMode.Substract;
}
if (this.m_RectSelectionMode != replace)
{
this.m_RectSelectionMode = replace;
return true;
}
return false;
}