1
0
mirror of https://github.com/videojs/video.js.git synced 2025-03-17 21:18:27 +02:00

Merge pull request #1605 from mmcc/hotfix/keyboard-location

maybe actually check for keyLocation
This commit is contained in:
Steve Heffernan 2014-10-28 11:47:32 -07:00
commit 330aed03c6

View File

@ -188,7 +188,7 @@ vjs.fixEvent = function(event) {
for (var key in old) {
// Safari 6.0.3 warns you if you try to copy deprecated layerX/Y
// Chrome warns you if you try to copy deprecated keyboardEvent.keyLocation
if (key !== 'layerX' && key !== 'layerY' && key !== 'keyboardEvent.keyLocation') {
if (key !== 'layerX' && key !== 'layerY' && key !== 'keyLocation') {
// Chrome 32+ warns if you try to copy deprecated returnValue, but
// we still want to if preventDefault isn't supported (IE8).
if (!(key == 'returnValue' && old.preventDefault)) {