From ecd91b8f8e1eea5c419c9206bfb834c718c094b5 Mon Sep 17 00:00:00 2001 From: Ezekiel Elin Date: Thu, 1 Sep 2022 09:11:31 -0400 Subject: [PATCH] Allow `enter` to create new transaction when focused on `cleared` column (#234) --- .../src/components/accounts/TransactionsTable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/desktop-client/src/components/accounts/TransactionsTable.js b/packages/desktop-client/src/components/accounts/TransactionsTable.js index 9b678e7..3ba3d9d 100644 --- a/packages/desktop-client/src/components/accounts/TransactionsTable.js +++ b/packages/desktop-client/src/components/accounts/TransactionsTable.js @@ -1634,7 +1634,8 @@ export let TransactionTable = React.forwardRef((props, ref) => { onAddSplit(lastTransaction.id); } else if ( (newNavigator.focusedField === 'debit' || - newNavigator.focusedField === 'credit') && + newNavigator.focusedField === 'credit' || + newNavigator.focusedField === 'cleared') && newNavigator.editingId === lastTransaction.id && (!isSplit || !lastTransaction.error) ) {