code: function slowPoll(cm) {
      if (cm.display.pollingFast) return;
      cm.display.poll.set(cm.options.pollInterval, function() {
        readInput(cm);
        if (cm.state.focused) slowPoll(cm);
      });
    }
docs: INPUT HANDLING