Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        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);
            }
        }