Hiscores table: Only reassign focus when there was focus before
feklee opened this issue · comments
When the screen resizes, then the hiscores table is redrawn. In this case, focus should only be reassigned to the input field if it had focus before. Rationale:
The screen may have been resized because the virtual keyboard went away due to the user not wanting to enter anything.
During redraw, the name input field is now only given focus if it is new or if it had focus before.