/// <summary>Define by string expression with '/' separator</summary> public MenuLine DefineMenuLine(string path, MenuLine line) { var sequence = path.Split('/'); var newSequence = Kbd.ParsePseudo(sequence); Define(newSequence, line); return(line); }
// =============================================================================================== // Define menu map // =============================================================================================== /// <summary>Define list of key-strings. This way used for defining menu</summary> public KeyMap CreateMenu(string path, string title, string help) { var menu = new KeyMap(title, help); var sequence = path.Split('/'); var newSequence = Kbd.ParsePseudo(sequence); Define(newSequence, menu); return(menu); }
// =============================================================================================== // Define the key binding recursively // =============================================================================================== /// <summary>Define list of key-strings. This way used for defining menu</summary> public bool DefinePseudo(string[] sequence, object value) { var newSequence = Kbd.ParsePseudo(sequence); return(Define(newSequence, value)); }