mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-29 03:15:51 +02:00
17 lines
469 B
C#
17 lines
469 B
C#
using System.Windows.Forms;
|
|
using CefSharp;
|
|
|
|
namespace TweetDuck.Browser.Handling {
|
|
sealed class KeyboardHandlerBrowser : KeyboardHandlerBase {
|
|
private readonly FormBrowser form;
|
|
|
|
public KeyboardHandlerBrowser(FormBrowser form) {
|
|
this.form = form;
|
|
}
|
|
|
|
protected override bool HandleRawKey(IWebBrowser browserControl, Keys key, CefEventFlags modifiers) {
|
|
return base.HandleRawKey(browserControl, key, modifiers) || form.ProcessBrowserKey(key);
|
|
}
|
|
}
|
|
}
|