Merge "Negate condition to reduce nesting in InputDispatcher"