Added missing default values for browser and configuration mode.
This commit is contained in:
parent
2cde60b1e7
commit
7e3703dc16
2 changed files with 4 additions and 1 deletions
|
@ -120,6 +120,7 @@ namespace SafeExamBrowser.Configuration.ConfigurationData
|
||||||
settings.Browser.AllowPdfReader = true;
|
settings.Browser.AllowPdfReader = true;
|
||||||
settings.Browser.AllowPdfReaderToolbar = false;
|
settings.Browser.AllowPdfReaderToolbar = false;
|
||||||
settings.Browser.AllowUploads = true;
|
settings.Browser.AllowUploads = true;
|
||||||
|
settings.Browser.EnableBrowser = true;
|
||||||
settings.Browser.MainWindow.AllowAddressBar = false;
|
settings.Browser.MainWindow.AllowAddressBar = false;
|
||||||
settings.Browser.MainWindow.AllowBackwardNavigation = false;
|
settings.Browser.MainWindow.AllowBackwardNavigation = false;
|
||||||
settings.Browser.MainWindow.AllowDeveloperConsole = false;
|
settings.Browser.MainWindow.AllowDeveloperConsole = false;
|
||||||
|
@ -133,6 +134,8 @@ namespace SafeExamBrowser.Configuration.ConfigurationData
|
||||||
settings.Browser.Proxy.Policy = ProxyPolicy.System;
|
settings.Browser.Proxy.Policy = ProxyPolicy.System;
|
||||||
settings.Browser.StartUrl = "https://www.safeexambrowser.org/start";
|
settings.Browser.StartUrl = "https://www.safeexambrowser.org/start";
|
||||||
|
|
||||||
|
settings.ConfigurationMode = ConfigurationMode.Exam;
|
||||||
|
|
||||||
settings.Keyboard.AllowAltEsc = false;
|
settings.Keyboard.AllowAltEsc = false;
|
||||||
settings.Keyboard.AllowAltF4 = false;
|
settings.Keyboard.AllowAltF4 = false;
|
||||||
settings.Keyboard.AllowAltTab = true;
|
settings.Keyboard.AllowAltTab = true;
|
||||||
|
|
|
@ -60,7 +60,7 @@ namespace SafeExamBrowser.Runtime.Operations
|
||||||
Title = TextKey.MessageBox_VirtualMachineNotAllowedTitle
|
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);
|
ActionRequired?.Invoke(args);
|
||||||
|
|
||||||
return OperationResult.Aborted;
|
return OperationResult.Aborted;
|
||||||
|
|
Loading…
Reference in a new issue