kitodo / kitodo-production

Kitodo.Production is a workflow management tool for mass digitization and is part of the Kitodo Digital Library Suite.
http://www.kitodo.org/software/kitodoproduction/
GNU General Public License v3.0
58 stars 64 forks source link

Handle enter event in input fields #6063

Closed BartChris closed 1 month ago

BartChris commented 1 month ago

During the recent Community meeting ( https://github.com/kitodo/kitodo-production/wiki/2024%E2%80%9004%E2%80%9019-%E2%80%90-Programm-Community-Treffen-(Kitodo.Production) ), a bug was reported regarding the behavior when pressing the "Enter" key within an input field in the metadata tab of the metadata editor. This action could potentially result in the disappearance of the first form field and metadata values already recorded there. To mitigate this issue, one proposed solution is to intercept "Enter" key events within input fields (excluding textareas) in the metadata editor and handle them similarly to tab events, causing the focus to jump to the next input field. This pull request aims to implement this solution.

solth commented 1 month ago

@BartChris would you mind opening a corresponding pull request against the 3.6.x branch as well?