Version: 1.0.01.0.11.0.22.0.02.0.12.0.22.0.32.0.42.1.02.1.12.1.22.2.02.3.02.4.02.4.12.4.22.4.32.4.42.4.52.4.62.4.72.5.02.5.12.5.22.5.32.5.42.5.52.5.62.5.72.5.82.5.92.5.102.5.112.5.122.5.132.5.142.5.152.6.02.6.12.6.22.6.32.7.02.7.12.7.22.7.32.7.42.7.52.7.62.7.72.7.82.8.02.8.12.8.22.8.32.8.42.8.52.8.62.8.72.8.82.8.93.0.03.0.13.0.23.0.33.0.43.1.03.1.13.1.23.1.33.2.03.2.13.3.03.3.13.3.23.3.33.3.43.3.53.4.03.4.13.4.23.4.33.4.43.4.53.4.63.4.73.4.83.4.93.4.103.4.113.4.123.4.133.4.143.4.153.5.03.6.03.6.13.6.23.6.33.6.43.6.53.6.63.6.73.6.83.6.93.6.103.7.04.0.0-alpha.04.0.0-alpha.14.0.04.0.14.0.24.0.34.0.44.0.54.0.64.0.74.0.84.0.94.0.104.0.114.0.124.0.134.1.04.2.04.3.04.3.14.3.24.3.34.3.44.3.54.3.64.3.74.3.84.3.94.4.04.4.14.4.24.4.34.4.44.4.54.5.04.5.14.5.24.5.34.5.44.5.54.5.64.5.74.5.8-beta.04.5.8-beta.14.5.8-beta.24.5.84.5.94.6.04.6.14.6.24.6.35.0.05.0.15.1.05.1.16.0.06.0.16.1.06.1.16.1.26.1.36.2.07.0.0-alpha.07.0.0-alpha.17.0.0-alpha.27.0.0-alpha.37.0.0-alpha.47.0.07.0.17.0.27.0.37.0.47.0.57.0.67.1.07.1.17.1.27.1.37.1.47.2.07.3.07.3.17.3.27.3.37.3.47.3.57.3.67.3.77.3.87.3.97.3.117.4.07.4.17.4.28.0.0-alpha.08.0.0-alpha.18.0.08.0.18.0.28.0.38.0.48.1.08.2.08.3.08.4.08.5.08.6.08.6.19.0.09.1.09.2.0
/**
* Keep input cursor in the correct position if possible.
* Is this necessary since we have `formatter` which may mass the content?
*/
export default function useCursor(input: HTMLInputElement, focused: boolean): [() => void, () => void];