From 485ef684be840edc1d6e8f8e219e8cf03bd8fe4b Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Mon, 31 Jul 2017 13:36:44 +0200 Subject: [PATCH] Prevent notification keyboard controls from triggering in dev tools --- Core/Handling/KeyboardHandlerNotification.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Handling/KeyboardHandlerNotification.cs b/Core/Handling/KeyboardHandlerNotification.cs index 03a812ce..2506d29f 100644 --- a/Core/Handling/KeyboardHandlerNotification.cs +++ b/Core/Handling/KeyboardHandlerNotification.cs @@ -12,7 +12,7 @@ public KeyboardHandlerNotification(FormNotificationBase notification){ } bool IKeyboardHandler.OnPreKeyEvent(IWebBrowser browserControl, IBrowser browser, KeyType type, int windowsKeyCode, int nativeKeyCode, CefEventFlags modifiers, bool isSystemKey, ref bool isKeyboardShortcut){ - if (type == KeyType.RawKeyDown){ + if (type == KeyType.RawKeyDown && !browser.FocusedFrame.Url.StartsWith("chrome-devtools://")){ switch((Keys)windowsKeyCode){ case Keys.Enter: notification.InvokeAsyncSafe(notification.FinishCurrentNotification);