From e9a69b7a47a43b8b4b955afc4922394991715c98 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 10 Aug 2023 12:29:10 +0200 Subject: [PATCH] TermInput.js: Also accept new terms upon pushing Enter It's now controlled. Previously it depended on whether Enter is able to submit the form or not. But a submit isn't required either. --- asset/js/widget/TermInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asset/js/widget/TermInput.js b/asset/js/widget/TermInput.js index b6eae4b0..537f4c48 100644 --- a/asset/js/widget/TermInput.js +++ b/asset/js/widget/TermInput.js @@ -135,7 +135,7 @@ define(["../notjQuery", "BaseInput"], function ($, BaseInput) { return; } - if (event.key !== this.separator) { + if (event.key !== this.separator && event.key !== 'Enter') { return; }