def on_text(self, text): if len(self.focus) > 0: return self.focus[-1].on_text(text) return Container.on_text(self, text)