Beispiel #1
0
        private void OnMpdnFormKeyDown(object sender, KeyEventArgs e)
        {
            if (e.Modifiers == Keys.Control && e.KeyCode == Keys.C)
            {
                CloseMedia();
            }

            if (e.Modifiers == Keys.Control && e.KeyCode == Keys.Tab)
            {
                if (Player.FullScreenMode.Active || !m_Form.Visible || m_Form.ContainsFocus)
                {
                    return;
                }
                m_Form.Activate();
                Cursor.Position    = new Point(m_Form.Location.X + 100, m_Form.Location.Y + 100);
                e.SuppressKeyPress = true;
            }
        }
Beispiel #2
0
        private void OnMpdnFormKeyDown(object sender, KeyEventArgs e)
        {
            if (e.Modifiers == Keys.Control && e.KeyCode == Keys.C)
            {
                CloseMedia();
            }

            if (e.Modifiers == Keys.Control && e.KeyCode == Keys.Tab)
            {
                if (!PlayerControl.InFullScreenMode && form.Visible && !form.ContainsFocus)
                {
                    form.Activate();
                    form.FocusPlaylist();
                    Cursor.Position    = new Point(form.Location.X + 100, form.Location.Y + 100);
                    e.SuppressKeyPress = true;
                }
            }
        }