This got broken during the TypeScript migration in
c04fd6ce08b40262c660d38dbd491c37aed49a89.
see https://www.woltlab.com/community/thread/300812-itemlist-static-separierung-per-komma-funktioniert-nicht/
* Handles the `[ENTER]` and `[,]` key to add an item to the list.
*/
function keyPress(event: KeyboardEvent): void {
- if (event.key === "Enter" || event.key === "Comma") {
+ if (event.key === "Enter" || event.key === ",") {
event.preventDefault();
const input = event.currentTarget as HTMLInputElement;
* Handles the `[ENTER]` and `[,]` key to add an item to the list.
*/
function keyPress(event) {
- if (event.key === "Enter" || event.key === "Comma") {
+ if (event.key === "Enter" || event.key === ",") {
event.preventDefault();
const input = event.currentTarget;
const value = input.value.trim();