Apply#
func (event TextEvent) Apply(editor *text.Editor)Apply routes one native text event into editor. The event kinds and commands are the platform's, value for value, so the one switch that maps them lives in internal/platform rather than in a second copy here.