private static void DefineAdditionalKeyMapToDefault(IKeyMap <InMemoSearcher> keyMap) { keyMap.SetAction(Keys.F | Keys.Control, searcher => searcher.SearchForwardNext(searcher.SearchText)); keyMap.SetAction(Keys.Enter, searcher => searcher.EndSession(false)); keyMap.SetAction(Keys.Escape, searcher => searcher.EndSession(true)); }
// ------------------------------ // private // ------------------------------ private void SetKeyMap(IKeyMap <TagSelector> keyMap) { keyMap.SetAction( Keys.Enter, selector => { if (_tagTextBox.Focused || _tagTreeView.Focused) { OnRequireClose(); } else if (_createTagTextBox.Focused || _createTagButton.Focused) { CreateTag(); } else if (_superTagComboBox.Focused) { _superTagComboBox.DroppedDown = !_superTagComboBox.DroppedDown; } } ); keyMap.SetAction( Keys.C | Keys.Alt, selector => { _createTagButton.Focus(); _createTagButton.PerformClick(); } ); keyMap.SetAction( Keys.S | Keys.Alt, selector => { _superTagComboBox.Focus(); _superTagComboBox.DroppedDown = true; } ); }
private static void DefineAdditionalKeyMapToEmacs(IKeyMap <InMemoSearcher> keyMap) { keyMap.SetAction(Keys.S | Keys.Control, searcher => searcher.SearchForwardNext(searcher.SearchText)); keyMap.SetAction(Keys.R | Keys.Control, searcher => searcher.SearchBackwardNext(searcher.SearchText)); keyMap.SetAction( Keys.S | Keys.Control | Keys.Alt, searcher => searcher.ReplaceForward(searcher.SearchText, searcher.ReplaceText) ); keyMap.SetAction( Keys.R | Keys.Control | Keys.Alt, searcher => searcher.ReplaceBackward(searcher.SearchText, searcher.ReplaceText) ); keyMap.SetAction(Keys.Enter, searcher => searcher.EndSession(false)); keyMap.SetAction(Keys.Escape, searcher => searcher.EndSession(true)); keyMap.SetAction(Keys.G | Keys.Control, searcher => searcher.EndSession(true)); }
private void DefineAdditionalKeyMapToEmacs(IKeyMap <PageContent> keyMap) { keyMap.SetAction(Keys.S | Keys.Control, searcher => StartSearch(true)); keyMap.SetAction(Keys.R | Keys.Control, searcher => StartSearch(false)); }
private void DefineAdditionalKeyMapToDefault(IKeyMap <PageContent> keyMap) { keyMap.SetAction(Keys.F | Keys.Control, searcher => StartSearch(true)); }