public static void StandardControlKeyCombinationPressed(Key key, IMainWindowKeyPressMethods mainWindow) { if (KeyboardHelper.IsLeftControlDown()) { IDictionary <Key, KeyboardHelper.Action> dict = new Dictionary <Key, KeyboardHelper.Action>(4); dict.Add(Key.C, mainWindow.CopyText); dict.Add(Key.F, mainWindow.OpenFindScreen); dict.Add(Key.O, mainWindow.OpenFile); dict.Add(Key.I, mainWindow.OpenHightlightScreen); KeyboardHelper.GetPressedKey(key, dict); } }
public static void StandardControlKeyCombinationPressed(Key key, IMainWindowKeyPressMethods mainWindow) { if (KeyboardHelper.IsLeftControlDown()) { IDictionary<Key, KeyboardHelper.Action> dict = new Dictionary<Key, KeyboardHelper.Action>(4); dict.Add(Key.C, mainWindow.CopyText); dict.Add(Key.F, mainWindow.OpenFindScreen); dict.Add(Key.O, mainWindow.OpenFile); dict.Add(Key.I, mainWindow.OpenHightlightScreen); KeyboardHelper.GetPressedKey(key, dict); } }