JabRef version
Latest development branch build (please note build date below)
Operating system
macOS
Details on version and operating system
macOS 15.5
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
Follow https://docs.jabref.org/setup/customentrytypes
How to reproduce
- Type some spaces and press enter
- Notice that an empty entry type was created
- Press save, preferences are recorded.
Result
An empty entry type was created and saved, which should not be.
Possible cause
'Press enter' action calls CustomEntryTypesTabViewModel.addNewCustomEntryType() directly, while 'Press + button' calls CustomEntryTypesTab.addEntryType(), so any validation implemented in addEntryType() is bypassed when adding entry type via 'press enter'.
This issue is very related to #15074 i am currently working on. Could you please assign me to this issue so that i can fix this as well?
Appendix
...
Log File
Paste an excerpt of your log file here
JabRef version
Latest development branch build (please note build date below)
Operating system
macOS
Details on version and operating system
macOS 15.5
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
Follow https://docs.jabref.org/setup/customentrytypes
How to reproduce
Result
An empty entry type was created and saved, which should not be.
Possible cause
'Press enter' action calls
CustomEntryTypesTabViewModel.addNewCustomEntryType()directly, while 'Press + button' callsCustomEntryTypesTab.addEntryType(), so any validation implemented inaddEntryType()is bypassed when adding entry type via 'press enter'.This issue is very related to #15074 i am currently working on. Could you please assign me to this issue so that i can fix this as well?
Appendix
...
Log File