Ejemplo n.º 1
0
        protected override void OnKeyReleaseInternal(IPointer cursor, SharpMedia.Input.KeyCodes code, SharpMedia.Input.KeyboardModifiers modifiers)
        {
            base.OnKeyReleaseInternal(cursor, code, modifiers);

            // We get child with focus.
            IWidget childWithFocus = InputRouting.GetChildWithFocus(this, manager);

            if (childWithFocus != null)
            {
                childWithFocus.OnKeyRelease(cursor, code, modifiers);
            }
        }
Ejemplo n.º 2
0
        void KeyPress(Area area, IPointer pointer, SharpMedia.Input.KeyCodes code,
                      SharpMedia.Input.KeyboardModifiers modeifiers, InputEventModifier inputModifier)
        {
            char chr = InputTranslator.Translate(code, modeifiers);

            buffer.Append(chr);
            currentLine.Append(chr);

            // FIXME: maximum buffer size.

            if (chr == '\n')
            {
                // We signal line read.
            }
        }