form view - expand column by keyboard plus

This commit is contained in:
Jan Prochazka
2021-05-23 22:12:50 +02:00
parent 95cb8c7cb6
commit 67504a9481
4 changed files with 20 additions and 4 deletions

View File

@@ -406,6 +406,20 @@
}));
}
if (event.keyCode == keycodes.numPadAdd) {
const col = getCellColumn(currentCell);
if (col.foreignKey) {
formDisplay.toggleExpandedColumn(col.uniqueName, true);
}
}
if (event.keyCode == keycodes.numPadSub) {
const col = getCellColumn(currentCell);
if (col.foreignKey) {
formDisplay.toggleExpandedColumn(col.uniqueName, false);
}
}
if (event.keyCode == keycodes.f2) {
// @ts-ignore
dispatchInsplaceEditor({ type: 'show', cell: currentCell, selectAll: true });

View File

@@ -67,6 +67,8 @@ export default {
numPad7: 103,
numPad8: 104,
numPad9: 105,
numPadAdd: 107,
numPadSub: 109,
multiply: 106,
add: 107,
subtract: 109,