本文整理汇总了C#中System.Windows.Forms.KeyEventArgs.GetKeyboardEvent方法的典型用法代码示例。如果您正苦于以下问题:C# KeyEventArgs.GetKeyboardEvent方法的具体用法?C# KeyEventArgs.GetKeyboardEvent怎么用?C# KeyEventArgs.GetKeyboardEvent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.KeyEventArgs
的用法示例。
在下文中一共展示了KeyEventArgs.GetKeyboardEvent方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TextBox1KeyUp
private void TextBox1KeyUp(object sender, KeyEventArgs e)
{
e.Handled = true;
if (_allowedInteraction)
{
if ((_aweWebView == null) || !_aweWebView.IsLive)
return;
_aweWebView.InjectKeyboardEvent(e.GetKeyboardEvent(WebKeyboardEventType.KeyUp));
}
}
示例2: OnKeyUp
protected override void OnKeyUp( KeyEventArgs e )
{
base.OnKeyUp( e );
if ( ( webView == null ) || !webView.IsLive )
return;
webView.InjectKeyboardEvent( e.GetKeyboardEvent( WebKeyboardEventType.KeyUp ) );
}
示例3: frmMain_KeyDown
private void frmMain_KeyDown(object sender, KeyEventArgs e)
{
Core.BrowserManager[id].KeyDown(e.GetKeyboardEvent(WebKeyType.KeyDown));
}
示例4: textBox1_KeyUp
private void textBox1_KeyUp(object sender, KeyEventArgs e)
{
Core.BrowserManager[id].KeyUp(e.GetKeyboardEvent(WebKeyType.KeyUp));
}
示例5: OnKeyUp
protected override void OnKeyUp(KeyEventArgs e)
{
Core.BrowserManager[id].KeyUp(e.GetKeyboardEvent(WebKeyType.KeyUp));
base.OnKeyUp(e);
}
示例6: OnKeyDown
protected override void OnKeyDown( KeyEventArgs e )
{
base.OnKeyDown( e );
if ( !webView.IsLive )
return;
webView.InjectKeyboardEvent( e.GetKeyboardEvent( WebKeyboardEventType.KeyDown ) );
}