Well, it detects something, but not what comment says. But aside from that this function needs to be cleaned up, e.g next statement is just `var typing = e.command.name === "insertstring" && text.length === 1;`, and when you clean up this function please update comments too:).