HTML5图像拖动事件-ctrlKey在Firefox 29中仍然为false [英] HTML5 image drag event - ctrlKey remains false in Firefox 29
本文介绍了HTML5图像拖动事件-ctrlKey在Firefox 29中仍然为false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这在Chrome浏览器中效果很好,但是我需要更改使其在Firefox中运行吗?
This works great in Chrome, but what do I need to change to make it work in Firefox?
e.ctrlKey
在FF中仍然为假:
$('img').on('drag', function(e){
console.log('ctrlKey', e.ctrlKey);
});
推荐答案
我认为这是Firefox中的错误.经过 Bugzilla 的挖掘,我发现了与标题为 DragEnd事件的问题类似的未确认错误不反映真实的ctrl/shift/alt键状态.
I think this is a bug in Firefox. After some digging in Bugzilla I found unconfirmed bug similar to your problem titled DragEnd event does not reflect real ctrl/shift/alt key status.
这篇关于HTML5图像拖动事件-ctrlKey在Firefox 29中仍然为false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文