Closed jmediamanager closed 8 years ago
Don't know if this one still applies but what might solve this is to enable the keyboard hook when the video list / facadaview view (Listcontrol) is focused or maybe additional Mediaportal elements in this one, when the hook keyup/down is called it will check and if it's not in focus it will do e.Handled = false; and let it pass thru. Example:
[SkinControlAttribute(50)] protected GUIFacadeControl videoList = null; ... void hook_KeyUp(object sender, KeyEventArgsEx e) { if (videoList.Focus == true && videoList.SelectedListItemIndex >= 0) { e.Handled = true; } else { e.Handled = false; } }
Thanks, will take a look
Fixed in current master branch as it uses a different method of reading out the keys (native Mediaportal event) which no longer locks out other keyboard input.
Fixed in 3.6.0.10.
Reported by windfury000@yahoo.com, Oct 15, 2012
It could be considered a bug since the keyboard hook of MA3 sometimes crashes MediaPortal.
I'm asking it as a feature for now, since I'm using MediaPortal in a dual monitor setup, which is why I take my focus off MediaPortal.
So, the thing is, I'm not using my keyboard when using My Anime 3. However, it steals my keyboard inputs everytime I enter Anime3_Main, It doesn't allow me to get my keyboard back unless I refocus on MediaPortal first.
What steps will reproduce the problem?
Your keyboard will then be hooked to the search function. You can't get it back unless you refocus on MediaPortal first. Sometimes, it also crashes.
error.log
So far, the only way I am able to get by this is to keep the focus on MediaPortal until after I pick a collection group (after the first screen).
Oct 15, 2012 windfury000@yahoo.com
Ohh, or maybe you could just make it so that the keyboard only hooks if the window (MediaPortal) is focused.
Oct 19, 2012 windfury000@yahoo.com
It seems that I was mistaken, I thought that after getting pass Anime3_Main, the keyboard will no longer be hooked by MA3 but then I found out that whenever I finish watching an episode (using an external player: MPC-HC for viewing), after the player exits and goes back to the episode listings, my keyboard is again hooked into MA3.
So I guess having an option to completely turn it off or again only when MediaPortal is focused is the solution here.