DotNetBrowser  1.14
Public Member Functions | List of all members
DotNetBrowser.KeyFilter Interface Reference

A keyboard filter that can be set to the BrowserView to filter keyboard events. More...

Public Member Functions

bool Filter (int key)
 Invoked when the BrowserView component receives key event to ask whether it should be sent to the native Chromium web browser control or not. This filter doesn't handle the situation when keyboard events are sent from JavaScript code on the loaded web page. More...
 

Detailed Description

A keyboard filter that can be set to the BrowserView to filter keyboard events.

Member Function Documentation

bool DotNetBrowser.KeyFilter.Filter ( int  key)

Invoked when the BrowserView component receives key event to ask whether it should be sent to the native Chromium web browser control or not. This filter doesn't handle the situation when keyboard events are sent from JavaScript code on the loaded web page.

Parameters
keythe key to check.
Returns
true if the passed key should be filtered (canceled).