aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authordblood <dougblood@gmail.com>2010-12-02 14:23:41 -0800
committerScott González <scott.gonzalez@gmail.com>2010-12-03 08:44:34 -0500
commit51695f82c8c0017d3853b36bdadec5c8253648fb (patch)
tree86529b22bf8fea6416113b49d0e066daf6f4b869 /ui
parentb9e34f726a89fc9edb3b05d4a53b8081c6c6d80f (diff)
downloadjquery-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.js2
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);
}
},