ARCed.Scintilla.SnippetChooser.SnippetChooser_Load C# (CSharp) Method

SnippetChooser_Load() private method

private SnippetChooser_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
		private void SnippetChooser_Load(object sender, EventArgs e)
		{
			//	This Scintilla has a very limited command set. Its necessary becuase
			//	Scintilla's AutoComplete system is very sensitive when it comes to
			//	dismissing the window, almost anything will do it and there's really
			//	no practical way to prevent it.
			this.txtSnippet.Commands.RemoveAllBindings();

			this.txtSnippet.Commands.AddBinding(Keys.Delete, Keys.None, BindableCommand.Clear);
			this.txtSnippet.Commands.AddBinding(Keys.Back, Keys.None, BindableCommand.DeleteBack);
			this.txtSnippet.Commands.AddBinding('Z', Keys.Control, BindableCommand.Undo);
			this.txtSnippet.Commands.AddBinding('Y', Keys.Control, BindableCommand.Redo);
			this.txtSnippet.Commands.AddBinding('X', Keys.Control, BindableCommand.Cut);
			this.txtSnippet.Commands.AddBinding('C', Keys.Control, BindableCommand.Copy);
			this.txtSnippet.Commands.AddBinding('V', Keys.Control, BindableCommand.Paste);
			this.txtSnippet.Commands.AddBinding('A', Keys.Control, BindableCommand.SelectAll);

			this.txtSnippet.Commands.AddBinding(Keys.Down, Keys.None, BindableCommand.LineDown);
			this.txtSnippet.Commands.AddBinding(Keys.Up, Keys.None, BindableCommand.LineUp);

		}