message: Fix the close button on the empty pane menu
diff: @@ -64,8 +64,7 @@ export class EmptyPaneMenu extends ThemeableElementBase {
  const listPicker = <ListPicker<CommandAndShortcut>> DomUtils.getShadowId(this, ID_LIST_PICKER);
  listPicker.addEventListener("selected", (ev: CustomEvent): void => {
  - const event = new CustomEvent("selected", { detail: {selected: ev.detail.selected } });
  - this.dispatchEvent(event);
  + this._emitSelectedEvent(ev.detail.selected);
  });
  listPicker.setFilterAndRankEntriesFunc(commandPaletteFilterEntries);
  @@ -76,14 +75,18 @@ export class EmptyPaneMenu extends ThemeableElementBase {
  const closeButton = DomUtils.getShadowId(this, ID_CLOSE_BUTTON);
  closeButton.addEventListener('click', () => {
  - const event = new CustomEvent("selected", { detail: {selected: 'closePane' } });
  - this.dispatchEvent(event);
  + this._emitSelectedEvent("extraterm:window.closePane_window");
  });
  this.updateThemeCss();
  }
  }
  + private _emitSelectedEvent(command: string): void {
  + const event = new CustomEvent("selected", { detail: {selected: command } });
  + this.dispatchEvent(event);
  + }
  +
  protected _themeCssFiles(): ThemeTypes.CssFile[] {
  return [ThemeTypes.CssFile.GENERAL_GUI, ThemeTypes.CssFile.EMPTY_PANE_MENU];
  }
  