[FIX] account_reconciliation_widget: only stop up down key events

After the previous commit (311a0fa) users couldn't use the tab key
to navigate over manual item fields.

TT45219
This commit is contained in:
David
2023-11-02 15:26:49 +01:00
parent f6bab13d17
commit 6658a0506f

View File

@@ -53,7 +53,11 @@ odoo.define("account.ReconciliationClientAction", function (require) {
const $input = ev.target.$input;
// When we're on a relational field, we want to navigate inside the record
// selector, otherwise we'll be catching a wrong navigation event
if ($input && $input.hasClass("ui-autocomplete-input")) {
if (
["up", "down"].includes(ev.data.direction) &&
$input &&
$input.hasClass("ui-autocomplete-input")
) {
ev.stopPropagation();
return;
}