From e5b94c5cda0ef1bd8cef6cbb63b565ea8888a1f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Mon, 19 Apr 2021 12:45:37 +0200 Subject: [PATCH] SEBWIN-468: Fixed bug with zoom in keyboard command for English keyboard layout. --- SafeExamBrowser.Browser/BrowserApplicationInstance.cs | 2 +- SafeExamBrowser.Browser/Handlers/KeyboardHandler.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SafeExamBrowser.Browser/BrowserApplicationInstance.cs b/SafeExamBrowser.Browser/BrowserApplicationInstance.cs index 5fc8e404..ef17c798 100644 --- a/SafeExamBrowser.Browser/BrowserApplicationInstance.cs +++ b/SafeExamBrowser.Browser/BrowserApplicationInstance.cs @@ -12,7 +12,6 @@ using System.Threading.Tasks; using CefSharp; using SafeExamBrowser.Applications.Contracts; using SafeExamBrowser.Applications.Contracts.Events; -using SafeExamBrowser.Core.Contracts.Resources.Icons; using SafeExamBrowser.Browser.Contracts.Events; using SafeExamBrowser.Browser.Contracts.Filters; using SafeExamBrowser.Browser.Events; @@ -20,6 +19,7 @@ using SafeExamBrowser.Browser.Filters; using SafeExamBrowser.Browser.Handlers; using SafeExamBrowser.Configuration.Contracts; using SafeExamBrowser.Configuration.Contracts.Cryptography; +using SafeExamBrowser.Core.Contracts.Resources.Icons; using SafeExamBrowser.I18n.Contracts; using SafeExamBrowser.Logging.Contracts; using SafeExamBrowser.Settings.Browser; diff --git a/SafeExamBrowser.Browser/Handlers/KeyboardHandler.cs b/SafeExamBrowser.Browser/Handlers/KeyboardHandler.cs index 0e68c3a3..35ffca06 100644 --- a/SafeExamBrowser.Browser/Handlers/KeyboardHandler.cs +++ b/SafeExamBrowser.Browser/Handlers/KeyboardHandler.cs @@ -38,7 +38,7 @@ namespace SafeExamBrowser.Browser.Handlers HomeNavigationRequested?.Invoke(); } - if ((ctrl && keyCode == (int) Keys.Add) || (ctrl && shift && keyCode == (int) Keys.D1)) + if ((ctrl && keyCode == (int) Keys.Add) || (ctrl && keyCode == (int) Keys.Oemplus) || (ctrl && shift && keyCode == (int) Keys.D1)) { ZoomInRequested?.Invoke(); }