mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 13:51:30 +11:00
Document unpreventable events
This commit is contained in:
parent
3f4f580181
commit
eb2d3894ef
|
@ -26,6 +26,9 @@ pub trait WindowBuilderExtWebSys {
|
||||||
///
|
///
|
||||||
/// For example, mouse wheel events are only handled by the canvas by default. This avoids
|
/// For example, mouse wheel events are only handled by the canvas by default. This avoids
|
||||||
/// the default behavior of scrolling the page.
|
/// 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;
|
fn with_prevent_default(self, prevent_default: bool) -> Self;
|
||||||
|
|
||||||
/// Whether the canvas should be focusable using the tab key. This is necessary to capture
|
/// Whether the canvas should be focusable using the tab key. This is necessary to capture
|
||||||
|
|
Loading…
Reference in a new issue