gpt4 book ai didi

javascript - HTML5 图像拖动事件 - ctrlKey 在 Firefox 29 中仍然为 false

转载 作者:行者123 更新时间:2023-11-28 01:43:55 24 4
gpt4 key购买 nike

这在 Chrome 中运行良好,但我需要更改什么才能使其在 Firefox 中运行?

e.ctrlKey 在 FF 中保持为 false:

$('img').on('drag', function(e){
console.log('ctrlKey', e.ctrlKey);
});

http://jsfiddle.net/YF6UG/4/

最佳答案

我认为这是 Firefox 中的错误。经过一番挖掘 Bugzilla我发现了与您的问题类似的未确认错误,标题为 DragEnd event does not reflect real ctrl/shift/alt key status .

关于javascript - HTML5 图像拖动事件 - ctrlKey 在 Firefox 29 中仍然为 false,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24016457/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com