Skip to content

Commit 3e5873e

Browse files
authored
disable right-click on contect menu
1 parent 5b2e41d commit 3e5873e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/platform/guihtml.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ class MenuImplHtml : public Menu,
230230
htmlMenu(val::global("document").call<val>("createElement", val("ul")))
231231
{
232232
htmlMenu["classList"].call<void>("add", val("menu"));
233+
htmlMenu.call<void>("setAttribute", val("oncontextmenu"), val("return false"));
233234
}
234235

235236
MenuItemRef AddItem(const std::string &label, std::function<void()> onTrigger,

0 commit comments

Comments
 (0)