Fix to work better with split and undocked keyboards on iPad.