Added support for empty action, e.g. for straight text input