/*===============================
|	KeyFilters.h
|
|	Blugs 1.1 interface to Blugs-style key filters for inline editing
|	www.blugs.com
|
|	Copyright © 1998-2001 Brian Hall
|	You may use these routines in your software without restriction.
|
|===============================*/
#ifndef __BLUGS_KEYFILTERS__
#define __BLUGS_KEYFILTERS__


typedef UInt8 (*BLKeyFilterProcPtr)( Ptr inTextBefore, UInt32 inTextLengthBefore, Ptr inTextAfter,
									UInt32 inTextLengthAfter, UInt8* ioKey );

enum
{
	keyFilterOK,		/* Character is unchanged; call TEKey */
	keyFilterChanged,	/* Filter changed the character; call TEKey */
	keyFilterBad		/* Ignore the character */
};



#define kKeyFilterFlavor	'KeyF'



#endif // __BLUGS_KEYFILTERS__