From eb2d3894ef2b7b112fe3f13870c0dce7ff719961 Mon Sep 17 00:00:00 2001 From: dAxpeDDa Date: Mon, 5 Jun 2023 01:47:01 +0200 Subject: [PATCH] Document unpreventable events --- src/platform/web.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/platform/web.rs b/src/platform/web.rs index f78a01fb..2ab468d8 100644 --- a/src/platform/web.rs +++ b/src/platform/web.rs @@ -26,6 +26,9 @@ pub trait WindowBuilderExtWebSys { /// /// For example, mouse wheel events are only handled by the canvas by default. This avoids /// the default behavior of scrolling the page. + /// + /// Some events are impossible to prevent. E.g. Firefox allows to access the native browser + /// context menu with Shift+Rightclick. fn with_prevent_default(self, prevent_default: bool) -> Self; /// Whether the canvas should be focusable using the tab key. This is necessary to capture