using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Linq; using System.Text; using UAF.Application.Modules; using UAF.Interfaces.Composition.Units; using DataFileAnalyzer.Commands; using System.Windows.Input; using UAF.Application; namespace DataFileAnalyzer { [Export(typeof(IInputModulePart))] public class DataFileAnalyzerInputModuleExtension : InputModuleExtension { public override InitResult InitModulePart() { RegisterCommand(Key.F5, executeOnMainModel: true); RegisterCommand(Key.F5, ModifierKeys.Control, executeOnMainModel: true); RegisterCommand(Key.C, ModifierKeys.Control, executeOnMainModel: true); RegisterCommand(Key.C, ModifierKeys.Control | ModifierKeys.Shift, executeOnMainModel: true); RegisterCommand(Key.T, ModifierKeys.Control, executeOnMainModel: true); RegisterCommand(Key.Left, ModifierKeys.Control, executeOnMainModel: true); RegisterCommand(Key.Right, ModifierKeys.Control, executeOnMainModel: true); RegisterCommand(Key.Enter, ModifierKeys.Control, executeOnMainModel: true); RegisterCommand(Key.F, ModifierKeys.Shift, executeOnMainModel: true); return base.InitModulePart(); } } }