Ejemplo n.º 1
0
        public override bool KeyPress(KeyDescriptor descriptor)
        {
            var task = ctx.GetPartialProjectionsAsync();

            if (task != null)
            {
                projections = task.Result;
            }
            var projectedExtension = GetCurrentExtension();

            if (projectedExtension != null)
            {
                return(projectedExtension.KeyPress(descriptor));
            }
            return(base.KeyPress(descriptor));
        }
        public override async Task <bool> KeyPress(KeyDescriptor descriptor)
        {
            var task = ctx.GetPartialProjectionsAsync();

            if (task != null)
            {
                projections = await task;
            }
            var projectedExtension = GetCurrentExtension();

            if (projectedExtension != null)
            {
                return(await projectedExtension.KeyPress(descriptor));
            }
            return(await base.KeyPress(descriptor));
        }