Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Close datepicker on Tab as well as escape #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kube/src/js/addons/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
// EVENTS
_handleKeyboard: function(e)
{
if (e.which === 27) this._close();
if (e.key === "Escape" || e.key == "Tab") this._close();
},
_enableEvents: function()
{
Expand Down Expand Up @@ -449,4 +449,4 @@
return date;
}
});
})(Kube);
})(Kube);