31 lines
1.5 KiB
C#
31 lines
1.5 KiB
C#
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<RefreshCommand>(Key.F5, executeOnMainModel: true);
|
|
RegisterCommand<ForceRefreshCommand>(Key.F5, ModifierKeys.Control, executeOnMainModel: true);
|
|
RegisterCommand<CopySelectedCommand>(Key.C, ModifierKeys.Control, executeOnMainModel: true);
|
|
RegisterCommand<CopyAllCommand>(Key.C, ModifierKeys.Control | ModifierKeys.Shift, executeOnMainModel: true);
|
|
RegisterCommand<ShowHistoryCommand>(Key.T, ModifierKeys.Control, executeOnMainModel: true);
|
|
RegisterCommand<GoBackCommand>(Key.Left, ModifierKeys.Control, executeOnMainModel: true);
|
|
RegisterCommand<GoForwardCommand>(Key.Right, ModifierKeys.Control, executeOnMainModel: true);
|
|
RegisterCommand<OpenFileCommand>(Key.Enter, ModifierKeys.Control, executeOnMainModel: true);
|
|
RegisterCommand<GoToFileCommand>(Key.F, ModifierKeys.Shift, executeOnMainModel: true);
|
|
return base.InitModulePart();
|
|
}
|
|
}
|
|
}
|