Пример #1
0
        public void UseAfterClose_NotCrash()
        {
            var engine = new XklEngine();

            engine.Close();
            engine.SetGroup(0);
        }
        public void ActivateKeyboard(IKeyboardDescription keyboard,
                                     IKeyboardDescription ignored)
        {
            Debug.Assert(keyboard.Engine == this);
            Debug.Assert(keyboard is XkbKeyboardDescription);
            var xkbKeyboard = keyboard as XkbKeyboardDescription;

            if (xkbKeyboard == null)
            {
                throw new ArgumentException();
            }

            m_engine.SetGroup(xkbKeyboard.GroupIndex);
        }