Trait webview2_sys::ICoreWebView2Settings3[][src]

pub trait ICoreWebView2Settings3: ICoreWebView2Settings2 {
    unsafe fn get_are_browser_accelerator_keys_enabled(
        &self,
        are_browser_accelerator_keys_enabled: *mut BOOL
    ) -> HRESULT;
unsafe fn put_are_browser_accelerator_keys_enabled(
        &self,
        are_browser_accelerator_keys_enabled: BOOL
    ) -> HRESULT; }
Expand description

A continuation of the ICoreWebView2Settings interface that manages whether browser accelerator keys are enabled.

Required methods

When this setting is set to FALSE, it disables all accelerator keys that access features specific to a web browser, including but not limited to:

  • Ctrl-F and F3 for Find on Page
  • Ctrl-P for Print
  • Ctrl-R and F5 for Reload
  • Ctrl-Plus and Ctrl-Minus for zooming
  • Ctrl-Shift-C and F12 for DevTools
  • Special keys for browser functions, such as Back, Forward, and Search

It does not disable accelerator keys related to movement and text editing, such as:

  • Home, End, Page Up, and Page Down
  • Ctrl-X, Ctrl-C, Ctrl-V
  • Ctrl-A for Select All
  • Ctrl-Z for Undo

Those accelerator keys will always be enabled unless they are handled in the AcceleratorKeyPressed event.

This setting has no effect on the AcceleratorKeyPressed event. The event will be fired for all accelerator keys, whether they are enabled or not.

The default value for AreBrowserAcceleratorKeysEnabled is TRUE.

\snippet SettingsComponent.cpp AreBrowserAcceleratorKeysEnabled

Sets the AreBrowserAcceleratorKeysEnabled property.

Trait Implementations

A COM compatible V-Table

The interface that this interface inherits from

The associated id for this interface

Check whether a given IID is in the inheritance hierarchy of this interface

Get the vtable for a particular COM interface

Implementations on Foreign Types

Implementors