示例#1
0
        /// <summary>
        /// If we have a valid inputContext Focus it. Also set the GlobalCachedInputContext.
        /// </summary>
        public void FocusIn()
        {
            if (InputContext == null)
            {
                return;
            }

            ProtectedIBusInvoke(() => m_inputContext.FocusIn());

            // For performance reasons we store the active inputContext
            GlobalCachedInputContext.InputContext = m_inputContext;
        }