public QueryEditor() { Document.Language = DefaultLanguage; AreLineModificationMarksVisible = false; foreach (var key in InputBindings.Where(x => x.Key == Key.Enter && x.Modifiers == ModifierKeys.Control).ToList()) { InputBindings.Remove(key); } }
protected virtual void OnKeyPressEvent(object o, KeyEventArgs args) { var commands = InputBindings.Where(ib => ib.Command != null && ib.Gesture.Matches(args.Key, Keyboard.Modifiers)).Select(ib => ib.Command); foreach (var command in commands) { command.Execute(null); } RaiseKeyPressEvent(args); }
public QueryEditor() { IsSelectionMarginVisible = false; IsOutliningMarginVisible = true; AreLineModificationMarksVisible = false; foreach (var key in InputBindings.Where(x => x.Key == Key.Enter && x.Modifiers == ModifierKeys.Control).ToList()) { InputBindings.Remove(key); } }