|
|
@ -10,6 +10,7 @@ import { |
|
|
|
extractPkFromRow, |
|
|
|
extractPkFromRow, |
|
|
|
extractSdkResponseErrorMsg, |
|
|
|
extractSdkResponseErrorMsg, |
|
|
|
isMac, |
|
|
|
isMac, |
|
|
|
|
|
|
|
isTypableInputColumn, |
|
|
|
message, |
|
|
|
message, |
|
|
|
reactive, |
|
|
|
reactive, |
|
|
|
ref, |
|
|
|
ref, |
|
|
@ -248,22 +249,7 @@ export function useMultiSelect( |
|
|
|
|
|
|
|
|
|
|
|
const columnObj = unref(fields)[selectedCell.col] |
|
|
|
const columnObj = unref(fields)[selectedCell.col] |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
if ((!unref(editEnabled) || !isTypableInputColumn(columnObj)) && (isMac() ? e.metaKey : e.ctrlKey)) { |
|
|
|
(!unref(editEnabled) || |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
UITypes.DateTime, |
|
|
|
|
|
|
|
UITypes.Date, |
|
|
|
|
|
|
|
UITypes.Year, |
|
|
|
|
|
|
|
UITypes.Time, |
|
|
|
|
|
|
|
UITypes.Lookup, |
|
|
|
|
|
|
|
UITypes.Rollup, |
|
|
|
|
|
|
|
UITypes.Formula, |
|
|
|
|
|
|
|
UITypes.Attachment, |
|
|
|
|
|
|
|
UITypes.Checkbox, |
|
|
|
|
|
|
|
UITypes.Rating, |
|
|
|
|
|
|
|
].includes(columnObj.uidt as UITypes)) && |
|
|
|
|
|
|
|
(isMac() ? e.metaKey : e.ctrlKey) |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
switch (e.keyCode) { |
|
|
|
switch (e.keyCode) { |
|
|
|
// copy - ctrl/cmd +c
|
|
|
|
// copy - ctrl/cmd +c
|
|
|
|
case 67: |
|
|
|
case 67: |
|
|
@ -350,7 +336,7 @@ export function useMultiSelect( |
|
|
|
// Update not allowed for table which doesn't have primary Key
|
|
|
|
// Update not allowed for table which doesn't have primary Key
|
|
|
|
return message.info(t('msg.info.updateNotAllowedWithoutPK')) |
|
|
|
return message.info(t('msg.info.updateNotAllowedWithoutPK')) |
|
|
|
} |
|
|
|
} |
|
|
|
if (makeEditable(rowObj, columnObj) && columnObj.title) { |
|
|
|
if (isTypableInputColumn(columnObj) && makeEditable(rowObj, columnObj) && columnObj.title) { |
|
|
|
rowObj.row[columnObj.title] = '' |
|
|
|
rowObj.row[columnObj.title] = '' |
|
|
|
} |
|
|
|
} |
|
|
|
// editEnabled = true
|
|
|
|
// editEnabled = true
|
|
|
|