Added missing logic to TextInputListener
Fixed small bugs and added functionality to media module