ui: set cursor position upon listener registration