This might be simplified further by just saying "if it's an input event and the last placeholder !== the current placeholder", but I'm not sure.