provide default keybindings for Commander-style FileSystemEditor (this should be done in XML)

This commit is contained in:
Michael Becker 2019-11-08 23:45:18 -05:00
parent d6c5ed5b52
commit e6c64a4886
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -356,6 +356,11 @@ namespace UniversalEditor.Editors.FileSystem
if (_er == null)
{
_er = base.MakeReference();
_er.KeyBindings.Add(new KeyBinding("FileSystemContextMenu_CopyTo", KeyboardKey.F5, KeyboardModifierKey.None));
_er.KeyBindings.Add(new KeyBinding("FileSystemContextMenu_Rename", KeyboardKey.F6, KeyboardModifierKey.None));
_er.KeyBindings.Add(new KeyBinding("FileSystemContextMenu_New_Folder", KeyboardKey.F7, KeyboardModifierKey.None));
_er.KeyBindings.Add(new KeyBinding("EditDelete", KeyboardKey.F8, KeyboardModifierKey.None));
_er.SupportedObjectModels.Add(typeof(FileSystemObjectModel));
}
return _er;