addPluginEvent = globId => {
  return event => {
    if (
      event.type !== 'keypress'
      || (event.type === 'keypress' && event.keyCode === 13)
    ) {
      currentConfig.filters[globId].use.push({
        name: ''
      });
      updateConfigDOM();
    }
  };
}
Handle add plugin button
@param {number} globId