This commit is contained in:
syuilo
2022-01-28 12:20:42 +09:00
parent bfc9873fb9
commit 974269b8f1
5 changed files with 10 additions and 8 deletions

View File

@@ -591,7 +591,7 @@ function getMenu() {
}
function showMenu(ev: MouseEvent) {
os.popupMenu(getMenu(), (ev.currentTarget ?? ev.target || undefined) as HTMLElement | undefined);
os.popupMenu(getMenu(), (ev.currentTarget ?? ev.target ?? undefined) as HTMLElement | undefined);
}
function onContextmenu(ev: MouseEvent) {