Skip to content

Commit

Permalink
Allow browser's context menu in about dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed May 16, 2024
1 parent 1da8d96 commit 582b0fd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/js/stendhal/ui/dialog/AboutDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import { TabDialogContentComponent } from "../toolkit/TabDialogContentComponent"
import { Layout } from "../../util/Layout";


/**
* Dialog displaying licensing and contributor information.
*/
export class AboutDialog extends TabDialogContentComponent {

constructor() {
Expand All @@ -24,6 +27,11 @@ export class AboutDialog extends TabDialogContentComponent {
this.addTab("Contributors", new Panel(this.child("#contributors")!));
this.addCloseButton();

this.child("#aboutdialog-content")!.addEventListener("contextmenu", (evt: MouseEvent) => {
// allow browser context menu in about dialog
evt.stopPropagation();
});

this.load();
}

Expand Down

0 comments on commit 582b0fd

Please sign in to comment.