Skip to content

Commit a83d1be

Browse files
committed
Allow Mac meta keypresses to work
Return true from the keypress handler on Meta keys, this allows things like copy/paste to work on Macs.
1 parent 17c4f29 commit a83d1be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery-ui-timepicker-addon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@
15011501
(tp_inst._defaults.amNames.join('')) + (tp_inst._defaults.pmNames.join('')) +
15021502
dateChars,
15031503
chr = String.fromCharCode(event.charCode === undefined ? event.keyCode : event.charCode);
1504-
return event.ctrlKey || (chr < ' ' || !dateChars || datetimeChars.indexOf(chr) > -1);
1504+
return event.ctrlKey || event.metaKey || (chr < ' ' || !dateChars || datetimeChars.indexOf(chr) > -1);
15051505
}
15061506
}
15071507

0 commit comments

Comments
 (0)