fixes #3011 Tab key does not work when adding categories