fix use selection instead of drag/drop while pressing crt/alt

egwPreventSelect on mousedown seems to be no longer necessary in nextmatch
This commit is contained in:
milan 2023-08-09 16:56:15 +02:00
parent 9092ffe8d7
commit b9a723a16f
2 changed files with 6 additions and 3 deletions

View File

@ -110,8 +110,10 @@ export class EgwDragActionImplementation implements EgwActionImplementation {
} }
// Bind mouse handlers // Bind mouse handlers
//TODO can i just remove jquery.off?? //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") //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) => { node.addEventListener("mousedown", (event) => {
if (_context.isSelection(event)) { if (_context.isSelection(event)) {
node.setAttribute("draggable", false); node.setAttribute("draggable", false);

View File

@ -58,7 +58,8 @@ export function et2_dataview_rowAOI(_node)
// Prevent the browser from selecting the content of the element, when // Prevent the browser from selecting the content of the element, when
// a special key is pressed. // 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 * Now append some action code to the node