forked from extern/egroupware
Also accept meta (Command) key to turn on dragging files out of window
This commit is contained in:
parent
3c0743cb97
commit
33a88ea089
@ -125,12 +125,12 @@ function egwDragActionImplementation()
|
|||||||
|
|
||||||
$j(node).off("mousedown")
|
$j(node).off("mousedown")
|
||||||
.on("mousedown", function(event) {
|
.on("mousedown", function(event) {
|
||||||
$j(node).draggable("option","disabled",event.ctrlKey);
|
$j(node).draggable("option","disabled",event.ctrlKey || event.metaKey);
|
||||||
$j(this).attr("draggable", event.ctrlKey ? "true" : "")
|
$j(this).attr("draggable", event.ctrlKey || event.metaKey ? "true" : "")
|
||||||
|
|
||||||
// Disabling draggable adds some UI classes, but we don't care so remove them
|
// Disabling draggable adds some UI classes, but we don't care so remove them
|
||||||
$j(node).removeClass("ui-draggable-disabled ui-state-disabled");
|
$j(node).removeClass("ui-draggable-disabled ui-state-disabled");
|
||||||
if(!event.ctrlKey || !this.addEventListener) return;
|
if(!(event.ctrlKey || event.metaKey) || !this.addEventListener) return;
|
||||||
})
|
})
|
||||||
.on("dragstart", function(event) {
|
.on("dragstart", function(event) {
|
||||||
if(event.dataTransfer == null) {
|
if(event.dataTransfer == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user