NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 33 34 35 36 37 … 93 Next »
onKeyDown called on main plugin from Popup

 
  • 0 Vote(s) - 0 Average
onKeyDown called on main plugin from Popup
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#1
2008-04-01, 07:54 AM
After handling the onKeyDown event in a popup, the onKeyDown event is fired in the main plugin class even though I'm not calling base.OnKeyDown. Is this intended behaviour or is there something I'm missing?

Code:
// Event handler in popup
        public override bool OnKeyDown(KeyEventArgs e)
        {
            if (buttons[selectedButton].OnKeyDown(e))
            {
                if (buttons[selectedButton] == EpisodeUiList)
                {
                    if (e.KeyValue == 38 || e.KeyValue == 40)
                    {
                    }
                    return true;
                    // Returns at this point but then the OnKeyDown(KeyEventArgs e) in the main plugin class is fired.
                }
            }
            return base.OnKeyDown(e);
        }
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#2
2008-04-01, 07:59 AM
Nevermind. It was due to improper handling of ActivateItem(). :o
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 2,879 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,379 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,488 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,919 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,786 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,135 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,963 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 5,012 2012-08-12, 07:56 PM
Last Post: sub
  GetRenderList() always called with "block-extras..." element in renderlist alibert 1 1,637 2012-06-18, 10:24 AM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,256 2012-02-11, 05:42 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode