Allow enter to create new transaction when focused on cleared column (#234)

This commit is contained in:
Ezekiel Elin 2022-09-01 09:11:31 -04:00 committed by GitHub
parent 4c0bd80f24
commit ecd91b8f8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1634,7 +1634,8 @@ export let TransactionTable = React.forwardRef((props, ref) => {
onAddSplit(lastTransaction.id); onAddSplit(lastTransaction.id);
} else if ( } else if (
(newNavigator.focusedField === 'debit' || (newNavigator.focusedField === 'debit' ||
newNavigator.focusedField === 'credit') && newNavigator.focusedField === 'credit' ||
newNavigator.focusedField === 'cleared') &&
newNavigator.editingId === lastTransaction.id && newNavigator.editingId === lastTransaction.id &&
(!isSplit || !lastTransaction.error) (!isSplit || !lastTransaction.error)
) { ) {