revert: #6943 change related to keyboard
gitea/salix-front/pipeline/pr-master There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2024-10-25 00:11:07 +02:00
parent e45e7c519b
commit e9c3b32b8a
1 changed files with 1 additions and 10 deletions

View File

@ -319,15 +319,6 @@ function handleOnDataSaved(_) {
if (_.onDataSaved) _.onDataSaved({ CrudModelRef: CrudModelRef.value });
else $props.create.onDataSaved(_);
}
function handleClick(event, btn, row) {
if (event.ctrlKey) {
event.preventDefault();
event.stopPropagation();
btn.action(row, event);
} else {
btn.action(row);
}
}
</script>
<template>
<QDrawer
@ -549,7 +540,7 @@ function handleClick(event, btn, row) {
:style="`visibility: ${
(btn.show && btn.show(row)) ?? true ? 'visible' : 'hidden'
}`"
@click="handleClick($event, btn, row)"
@click="btn.action(row)"
/>
</QTd>
</template>