Ejemplo n.º 1
0
        public override IObservable <Keys> Generate()
        {
            var predicate = InterceptKeys.GetKeyFilter(Filter);
            var source    = InterceptKeys.Instance.KeyDown.Where(predicate);

            if (SuppressRepetitions)
            {
                source = source
                         .Window(() => InterceptKeys.Instance.KeyUp.Where(predicate))
                         .SelectMany(sequence => sequence.Take(1));
            }
            return(source);
        }
Ejemplo n.º 2
0
 public override IObservable <Keys> Generate()
 {
     return(InterceptKeys.Instance.KeyUp.Where(InterceptKeys.GetKeyFilter(Filter)));
 }