@decorate_set_on_listener("onenter", "(self,new_value)")
    def set_on_enter_listener(self, listener, funcname):
        self.attributes[self.EVENT_ONKEYDOWN] = """
            if (event.keyCode == 13) {
                var params={};
                params['new_value']=document.getElementById('%(id)s').value;
                document.getElementById('%(id)s').value = '';
                document.getElementById('%(id)s').onchange = '';
                sendCallbackParam('%(id)s','%(evt)s',params);
                return false;
            }""" % {'id': id(self), 'evt': self.EVENT_ONENTER}
        self.eventManager.register_listener(self.EVENT_ONENTER, listener, funcname)
Registers the listener for the Widget.onenter event.
dataset/ETHPy150Open dddomodossola/remi/remi/gui.py/TextInput.set_on_enter_listener