mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 11:29:23 +01:00
fix use selection instead of drag/drop while pressing crt/alt
egwPreventSelect on mousedown seems to be no longer necessary in nextmatch
(cherry picked from commit b9a723a16f
)
This commit is contained in:
parent
a8bd6e9e3c
commit
93b4c30f54
@ -110,8 +110,10 @@ export class EgwDragActionImplementation implements EgwActionImplementation {
|
||||
}
|
||||
|
||||
// Bind mouse handlers
|
||||
//TODO can i just remove jquery.off??
|
||||
//jQuery(node).off("mousedown")
|
||||
//et2_dataview_view_aoi binds mousedown event in et2_dataview_rowAOI to "egwPreventSelect" function from egw_action_common via jQuery.mousedown
|
||||
//jQuery(node).off("mousedown",egwPreventSelect)
|
||||
//et2_dataview_view_aoi binds mousedown event in et2_dataview_rowAOI to "egwPreventSelect" function from egw_action_common via addEventListener
|
||||
//node.removeEventListener("mousedown",egwPreventSelect)
|
||||
node.addEventListener("mousedown", (event) => {
|
||||
if (_context.isSelection(event)) {
|
||||
node.setAttribute("draggable", false);
|
||||
|
@ -58,7 +58,8 @@ export function et2_dataview_rowAOI(_node)
|
||||
|
||||
// Prevent the browser from selecting the content of the element, when
|
||||
// a special key is pressed.
|
||||
jQuery(_node).mousedown(egwPreventSelect);
|
||||
//Seems not to be necessary in nextmatch anymore
|
||||
//_node.addEventListener("mousedown",egwPreventSelect);
|
||||
|
||||
/**
|
||||
* Now append some action code to the node
|
||||
|
Loading…
Reference in New Issue
Block a user