entListener('change', frameFormUpdated, false);
  gridMarginsAll.addEventListener('change', gridMarginsAllChanged, false);

  // Update the form from a selection change.
  window.onmessage = function(event) {
    let msg = event.data.pluginMessage;

    if (msg.msg == 'init') {
      hasKeywordFile = msg.file != ""
      document.getElementById('noKeywordSourceSection').style.display = hasKeywordFile ? 'none' : 'block';
      document.getElementById('hasKeywordSection').style.display = hasKeywordFile ? 'blo