Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

Esc-key and onblur should close calendar


Project:Date Input
Version:1.1.6
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

Hi.

It would be nice if the calendar can be closed via Esc-key. Hitting the Tab key (focus isn't anymore on date-field) should close the calendar also.

Thanks.

Comments

#1

Adding the following code to the end of the build function should enable hiding the calender when tabbing out of the input:

this.input.blur(this.bindToObj(function() { this.hide(); }))

#2

Version:1.1.3» 1.1.6

However, if adding blur event, even clicking on the calendar layer, the value of the input is not changed.

#3

Priority:normal» critical

#4

Status:active» closed

http://github.com/jonleighton/date_input/commit/49c3acb67628d91e68ccee3a...

Hitting tab will now start tabbing through the links in the date picker. When the last one loses focus the picker will be hidden. Hitting Esc will also now hide it.