Allow user to delete the date (even with "blockKeydown: true") #81

Open
basher opened this Issue Sep 30, 2011 · 0 comments

Projects

None yet

1 participant

@basher
basher commented Sep 30, 2011

Hi Arian,

See http://thelawyercpdselfservicedesign.abasoft.co.uk/_datepicker+validation.html

I have added a function to allow DELETE & BACKSPACE keys to empty the date fields:

$$('input.calendar').each(function(el){
el.addEvent('keydown', function(event) {
if (event.key == 'delete' || event.key == 'backspace') el.set('value', '');
else event.stop();
});
});

Can this functionality be incorporated into base class?

Many thanks,
Kev (kevin.bonett@abacusemedia.com)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment