refresh with ctrl+r #303

This commit is contained in:
Jan Prochazka 2022-06-30 07:40:36 +02:00
parent 2c7da1d3f8
commit 08b7b1870c
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
id: 'dataGrid.refresh', id: 'dataGrid.refresh',
category: 'Data grid', category: 'Data grid',
name: 'Refresh', name: 'Refresh',
keyText: 'F5', keyText: 'F5 | CtrlOrCommand+R',
toolbar: true, toolbar: true,
isRelatedToTab: true, isRelatedToTab: true,
icon: 'icon reload', icon: 'icon reload',
@ -17,7 +17,7 @@
id: 'dataGrid.revertRowChanges', id: 'dataGrid.revertRowChanges',
category: 'Data grid', category: 'Data grid',
name: 'Revert row changes', name: 'Revert row changes',
keyText: 'CtrlOrCommand+R', keyText: 'CtrlOrCommand+U',
testEnabled: () => getCurrentDataGrid()?.getGrider()?.containsChanges, testEnabled: () => getCurrentDataGrid()?.getGrider()?.containsChanges,
onClick: () => getCurrentDataGrid().revertRowChanges(), onClick: () => getCurrentDataGrid().revertRowChanges(),
}); });

View File

@ -16,7 +16,7 @@
id: 'dataForm.refresh', id: 'dataForm.refresh',
category: 'Data form', category: 'Data form',
name: 'Refresh', name: 'Refresh',
keyText: 'F5', keyText: 'F5 | CtrlOrCommand+R',
toolbar: true, toolbar: true,
isRelatedToTab: true, isRelatedToTab: true,
icon: 'icon reload', icon: 'icon reload',
@ -38,7 +38,7 @@
id: 'dataForm.revertRowChanges', id: 'dataForm.revertRowChanges',
category: 'Data form', category: 'Data form',
name: 'Revert row changes', name: 'Revert row changes',
keyText: 'CtrlOrCommand+R', keyText: 'CtrlOrCommand+U',
testEnabled: () => getCurrentDataForm()?.getFormer()?.containsChanges, testEnabled: () => getCurrentDataForm()?.getFormer()?.containsChanges,
onClick: () => getCurrentDataForm().getFormer().revertRowChanges(), onClick: () => getCurrentDataForm().getFormer().revertRowChanges(),
}); });