handle shift-tab correctly in numeric and date inputs