fixed editor

This commit is contained in:
Jan Prochazka
2021-03-27 10:38:49 +01:00
parent 987fe6095a
commit 4f58d2ff80
3 changed files with 28 additions and 12 deletions

View File

@@ -31,6 +31,7 @@
category: 'Data grid',
name: 'Copy to clipboard',
keyText: 'Ctrl+C',
disableHandleKeyText: 'Ctrl+C',
testEnabled: () => getCurrentDataForm() != null,
onClick: () => getCurrentDataForm().copyToClipboard(),
});
@@ -353,6 +354,7 @@
function createMenu() {
return [
{ command: 'dataForm.switchToTable' },
{ command: 'dataForm.copyToClipboard' },
{ divider: true },
{ command: 'dataForm.filterSelected' },
{ command: 'dataForm.addToFilter' },
@@ -526,6 +528,7 @@
invalidateCommands();
}}
on:keydown={handleKeyDown}
on:copy={copyToClipboard}
/>
</div>
{#if rowCountInfo}