diff options
author | dblood <dougblood@gmail.com> | 2010-12-02 14:23:41 -0800 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-12-03 08:44:34 -0500 |
commit | 51695f82c8c0017d3853b36bdadec5c8253648fb (patch) | |
tree | 86529b22bf8fea6416113b49d0e066daf6f4b869 /ui | |
parent | b9e34f726a89fc9edb3b05d4a53b8081c6c6d80f (diff) | |
download | jquery-ui-51695f82c8c0017d3853b36bdadec5c8253648fb.tar.gz jquery-ui-51695f82c8c0017d3853b36bdadec5c8253648fb.zip |
Datepicker: enabled OSX meta keys to work when constraining input. Fixed #5317 - datepicker cmd+a/c/v is not working on MAC OS-X
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 519b8a913..abcb37067 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -565,7 +565,7 @@ $.extend(Datepicker.prototype, { if ($.datepicker._get(inst, 'constrainInput')) { var chars = $.datepicker._possibleChars($.datepicker._get(inst, 'dateFormat')); var chr = String.fromCharCode(event.charCode == undefined ? event.keyCode : event.charCode); - return event.ctrlKey || (chr < ' ' || !chars || chars.indexOf(chr) > -1); + return event.ctrlKey || event.metaKey || (chr < ' ' || !chars || chars.indexOf(chr) > -1); } }, |