From 1f9d60693b1c751e4e8dab99bc8e980ef44e467b Mon Sep 17 00:00:00 2001 From: mattkol Date: Thu, 22 Jul 2021 07:55:06 -0400 Subject: [PATCH] Fix for issue https://github.com/chromelyapps/Chromely/issues/331 --- .../NativeHost/WinBase/DefaulKeyboadHookHandler.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Chromely.CefSharp/NativeHost/WinBase/DefaulKeyboadHookHandler.cs b/src/Chromely.CefSharp/NativeHost/WinBase/DefaulKeyboadHookHandler.cs index 1dde749..27d8d87 100644 --- a/src/Chromely.CefSharp/NativeHost/WinBase/DefaulKeyboadHookHandler.cs +++ b/src/Chromely.CefSharp/NativeHost/WinBase/DefaulKeyboadHookHandler.cs @@ -59,7 +59,7 @@ public bool HandleKey(IntPtr hWnd, object param) /// Determines whether the specified keyboard input should be allowed to be processed by the system. /// Helps block unwanted keys and key combinations that could exit the app, make system changes, etc. - private bool AllowKeyboardInput(bool alt, bool control, Keys key) + protected virtual bool AllowKeyboardInput(bool alt, bool control, Keys key) { if (_options.KioskMode) { @@ -71,7 +71,7 @@ private bool AllowKeyboardInput(bool alt, bool control, Keys key) #region - private bool AllowKeyboardInputForKioskMode(bool alt, bool control, Keys key) + protected virtual bool AllowKeyboardInputForKioskMode(bool alt, bool control, Keys key) { if (!_options.KioskMode) { @@ -114,7 +114,7 @@ private bool AllowKeyboardInputForKioskMode(bool alt, bool control, Keys key) #endregion } - internal class KeyboardParam + public class KeyboardParam { public KeyboardParam(bool isKeyUp, bool alt, bool control, Keys key) {