I'm having problems with enter key behavior in the datepicker. I am
running jQuery 1.3.2. I have also seen the below behavior running from
the jQuery demo (http://jqueryui.com/demos/datepicker/) directly.
All test cases are in Firefox 3.0.11 on an Intel Mac running 10.4.11.
Test case:
Hand enter a date in the proper format in a text field that has the
datepicker bound to it. Then click the Enter key.
The datepicker appears to override the existing input and put in
today's date.
Possible workaround:
I need the Enter key to leave dates alone if they are input. I don't
mind disabling or unbinding the datepicker as a work around, except
that does not appear to work. I tried
$(".calendar").keydown(function(e){
if (e.keyCode == 13) {
$(this).unbind();
}
});
which unbinds the datepicker AFTER the first focus and blur events on
the field.
Obviously, for this to work I will have to rebind the datepicker on
keyup.
Also, if we have access to the keymappings, I don't mind altering them
directly.
Thanks,
- Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---