Another fix for Issue #9

Previously when typing a number such as 0.12 the cursor would jump to the start - this resolves the issue, and doesn't appear to have any negative effects.