From 7e3703dc164b10e34b03bb0fcd7f34d51c192af6 Mon Sep 17 00:00:00 2001 From: dbuechel Date: Tue, 11 Feb 2020 10:34:23 +0100 Subject: [PATCH] Added missing default values for browser and configuration mode. --- SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs | 3 +++ SafeExamBrowser.Runtime/Operations/VirtualMachineOperation.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs b/SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs index 6d878422..b971500c 100644 --- a/SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs +++ b/SafeExamBrowser.Configuration/ConfigurationData/DataValues.cs @@ -120,6 +120,7 @@ namespace SafeExamBrowser.Configuration.ConfigurationData settings.Browser.AllowPdfReader = true; settings.Browser.AllowPdfReaderToolbar = false; settings.Browser.AllowUploads = true; + settings.Browser.EnableBrowser = true; settings.Browser.MainWindow.AllowAddressBar = false; settings.Browser.MainWindow.AllowBackwardNavigation = false; settings.Browser.MainWindow.AllowDeveloperConsole = false; @@ -133,6 +134,8 @@ namespace SafeExamBrowser.Configuration.ConfigurationData settings.Browser.Proxy.Policy = ProxyPolicy.System; settings.Browser.StartUrl = "https://www.safeexambrowser.org/start"; + settings.ConfigurationMode = ConfigurationMode.Exam; + settings.Keyboard.AllowAltEsc = false; settings.Keyboard.AllowAltF4 = false; settings.Keyboard.AllowAltTab = true; diff --git a/SafeExamBrowser.Runtime/Operations/VirtualMachineOperation.cs b/SafeExamBrowser.Runtime/Operations/VirtualMachineOperation.cs index 813fb1e7..d06c40f0 100644 --- a/SafeExamBrowser.Runtime/Operations/VirtualMachineOperation.cs +++ b/SafeExamBrowser.Runtime/Operations/VirtualMachineOperation.cs @@ -60,7 +60,7 @@ namespace SafeExamBrowser.Runtime.Operations Title = TextKey.MessageBox_VirtualMachineNotAllowedTitle }; - logger.Error("Detected virtual machine while SEB is not allowed to be run in a virtual machine! Aborting startup..."); + logger.Error("Detected virtual machine while SEB is not allowed to be run in a virtual machine! Aborting..."); ActionRequired?.Invoke(args); return OperationResult.Aborted;