IWithKeyModifiers

interface

An interface implemented by a webview if it supports a version of HandleKeyboardInput that accepts key modifiers, which can be used to trigger keyboard shortcuts.

Summary

Public methods

HandleKeyboardInput

void HandleKeyboardInput(string key, KeyModifier modifiers)

Like IWebView.HandleKeyboardInput(), except it also accepts modifiers that can be used to trigger keyboard shortcuts.

Example:
// Dispatches a ctrl+shift+n keyboard shortcut.
var webViewWithKeyModifiers = webViewPrefab.WebView as IWithKeyModifiers;
if (webViewWithKeyModifiers != null) {
    webViewWithKeyModifiers.HandleKeyboardInput("n", KeyModifier.Control | KeyModifier.Shift);
}