CK.WordPredictor.TextualContextService.OnKeySent C# (CSharp) 메소드

OnKeySent() 보호된 메소드

protected OnKeySent ( object sender, NativeKeySentEventArgs e ) : void
sender object
e CK.Plugins.SendInputDriver.NativeKeySentEventArgs
리턴 void
        protected virtual void OnKeySent( object sender, NativeKeySentEventArgs e )
        {
            if( !PredictionTextAreaService.Service.IsDriven )
            {
                if( e.Key == Native.KeyboardKeys.Space && _rawContext != null && _rawContext.Length > 0 )
                {
                    var raw = _rawContext.Substring( 0, _rawContext.Length - 1 );
                    _caretIndex = raw.Length;
                    SetRawText( raw );
                }
                else if( e.Key == Native.KeyboardKeys.Enter )
                {
                    ClearContext();
                }
            }
        }