/*
Copyright (C) 2014-2019 de4dot@gmail.com
This file is part of dnSpy
dnSpy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
dnSpy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with dnSpy. If not, see .
*/
using System.Windows.Input;
namespace dnSpy.Contracts.Hex.Editor {
///
/// Keyboard processor
///
public abstract class HexKeyProcessor {
///
/// Constructor
///
protected HexKeyProcessor() { }
///
/// true if the instance is interested in handled events. Default value is false.
///
public virtual bool IsInterestedInHandledEvents => false;
///
/// Key down handler
///
/// Key event args
public virtual void KeyDown(KeyEventArgs args) { }
///
/// Key up handler
///
/// Key event args
public virtual void KeyUp(KeyEventArgs args) { }
///
/// Text input handler
///
/// Key event args
public virtual void TextInput(TextCompositionEventArgs args) { }
///
/// Text input start handler
///
/// Key event args
public virtual void TextInputStart(TextCompositionEventArgs args) { }
///
/// Text input update handler
///
/// Key event args
public virtual void TextInputUpdate(TextCompositionEventArgs args) { }
///
/// Preview key down handler
///
/// Key event args
public virtual void PreviewKeyDown(KeyEventArgs args) { }
///
/// Preview key up handler
///
/// Key event args
public virtual void PreviewKeyUp(KeyEventArgs args) { }
///
/// Preview text input handler
///
/// Key event args
public virtual void PreviewTextInput(TextCompositionEventArgs args) { }
///
/// Preview text input start handler
///
/// Key event args
public virtual void PreviewTextInputStart(TextCompositionEventArgs args) { }
///
/// Preview text input update handler
///
/// Key event args
public virtual void PreviewTextInputUpdate(TextCompositionEventArgs args) { }
}
}