Axiom.Framework.Configuration.WinFormConfigurationDialog.SWF C# (CSharp) Method

SWF() private method

Filters out a message before it is dispatched.
private SWF ( System.Windows.Forms &msg ) : bool
msg System.Windows.Forms The message to be dispatched. You cannot modify this message. ///
return bool
		bool SWF.IMessageFilter.PreFilterMessage( ref SWF.Message msg )
		{
			const int WM_KEYDOWN = 0x100;

			SWF.Keys keyCode = (SWF.Keys)(int)msg.WParam & SWF.Keys.KeyCode;
			if ( msg.Msg == WM_KEYDOWN && keyCode == SWF.Keys.Return )
			{
				cmdOk_Click( this, null );
				return true;
			}
			if ( msg.Msg == WM_KEYDOWN && keyCode == SWF.Keys.Escape )
			{
				cmdCancel_Click( this, null );
				return true;
			}
			return false;
		}