2017-07-19 14:43:54 +02:00
|
|
|
|
/*
|
2019-01-09 11:25:21 +01:00
|
|
|
|
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
2017-07-19 14:43:54 +02:00
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Monitoring.Contracts
|
2017-07-19 14:43:54 +02:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Intercepts all keyboard input (except the Secure Attention Sequence: https://en.wikipedia.org/wiki/Secure_attention_key).
|
|
|
|
|
/// </summary>
|
2017-07-19 14:43:54 +02:00
|
|
|
|
public interface IKeyboardInterceptor
|
|
|
|
|
{
|
2017-08-03 15:35:22 +02:00
|
|
|
|
/// <summary>
|
2017-08-04 12:19:56 +02:00
|
|
|
|
/// Returns <c>true</c> if the given key should be blocked, otherwise <c>false</c>. The key code corresponds to a Win32 Virtual-Key.
|
2017-08-03 15:35:22 +02:00
|
|
|
|
/// </summary>
|
2017-08-04 12:19:56 +02:00
|
|
|
|
bool Block(int keyCode, KeyModifier modifier, KeyState state);
|
2017-07-19 14:43:54 +02:00
|
|
|
|
}
|
|
|
|
|
}
|