Don't move focus unnecessarily in date field in Chrome/IE

Part of webtrees bug #1261807