Merge branch 'DioxusLabs:master' into master

This commit is contained in:
WIGGLES authored and GitHub committed 2022-04-21 18:43:28 -04:00
commit cc379920fc
1 file changed
-2
-2
View File
@@ -189,12 +189,10 @@ pub fn launch_with_props<P: 'static + Send>(
r#" r#"
if (document.addEventListener) { if (document.addEventListener) {
document.addEventListener('contextmenu', function(e) { document.addEventListener('contextmenu', function(e) {
alert("You've tried to open context menu");
e.preventDefault(); e.preventDefault();
}, false); }, false);
} else { } else {
document.attachEvent('oncontextmenu', function() { document.attachEvent('oncontextmenu', function() {
alert("You've tried to open context menu");
window.event.returnValue = false; window.event.returnValue = false;
}); });
} }