ARCed.Scripting.ScriptEditorForm.Scintilla_KeyDown C# (CSharp) Method

Scintilla_KeyDown() private method

Checks key input for the hotkeys
private Scintilla_KeyDown ( object sender, KeyEventArgs e ) : void
sender object
e KeyEventArgs
return void
		private void Scintilla_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.Control)
			{
				var scintilla = (Scintilla.Scintilla)sender;
				if (e.KeyCode == Keys.NumPad0 || e.KeyCode == Keys.D0)
					scintilla.Zoom = 0;
				// Just for GG, we add the Ctrl button for dropping autocomplete :)
				if (scintilla.AutoComplete.IsActive)
					scintilla.AutoComplete.Accept();
			}
		}