Issue with Info shortcut on multimedia keys

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
tinybutstrong Offline
Senior Member
Posts: 192
Joined: Sep 2010
Reputation: 0
Post: #1
I have this config at appcommand.xml:

Code:
<FullscreenVideo>
    <appcommand>
      <launch_mail>OSD</launch_mail>
      <browser_favorites>Info</browser_favorites> <!-- small video info -->
    </appcommand>
  </FullscreenVideo>

Working fine, but Info dialogue is not toggling as the regular key i. Each time I hit browser_favorites key the info dialog opens again. This is a bug? My other custom shortcut, OSD on launch_mail key has no issue, toggle function normally.

Thanks.
(This post was last modified: 2012-05-09 00:06 by tinybutstrong.)
find quote
jhsrennie Offline
Team-XBMC Developer
Posts: 7,237
Joined: Nov 2008
Reputation: 117
Location: Chester, UK
Post: #2
Try adding:

Code:
<FullscreenInfo>
    <appcommand>
      <browser_favorites>Back</browser_favorites>
    </appcommand>
  </FullscreenInfo>
  <MusicInformation>
    <appcommand>
      <browser_favorites>Back</browser_favorites>
    </appcommand>
  </MusicInformation>
  <MovieInformation>
    <appcommand>
      <browser_favorites>Back</browser_favorites>
    </appcommand>
  </MovieInformation>
  <PictureInfo>
    <appcommand>
      <browser_favorites>Back</browser_favorites>
    </appcommand>
  </PictureInfo>
  <AddonInformation>
    <appcommand>
      <browser_favorites>Back</browser_favorites>
    </appcommand>
  </AddonInformation>

I don't think the Info action toggles the Info screen. If you look at the system keymap you'll see the various Info windows override <i> to be "Back" t=rather than "Info".
find quote
tinybutstrong Offline
Senior Member
Posts: 192
Joined: Sep 2010
Reputation: 0
Post: #3
Tried that, same result.

Log when tried i key:

Code:
18:39:05 T:4644   DEBUG: SDLKeyboard: scancode: 17, sym: 0069, unicode: 0069, modifier: 0
18:39:05 T:4644   DEBUG: CApplication::OnKey: i (f049) pressed, action is Info
18:39:05 T:4644   DEBUG: ------ Window Init (DialogFullScreenInfo.xml) ------
18:39:05 T:4644    INFO: Loading skin file: DialogFullScreenInfo.xml
18:39:06 T:4644   DEBUG: SDLKeyboard: scancode: 17, sym: 0069, unicode: 0069, modifier: 0
18:39:06 T:4644   DEBUG: CApplication::OnKey: i (f049) pressed, trying fullscreen info action Back
18:39:07 T:4644   DEBUG: ------ Window Deinit (DialogFullScreenInfo.xml) ------

And favorite key:

Code:
18:39:29 T:4644   DEBUG: WinEventsWin32.cpp: APPCOMMAND 6
18:39:29 T:4644   DEBUG: CApplication::OnAppCommand: appcommand 6, trying action Info
18:39:29 T:4644   DEBUG: ------ Window Init (DialogFullScreenInfo.xml) ------
18:39:29 T:4644    INFO: Loading skin file: DialogFullScreenInfo.xml
18:39:29 T:4644   DEBUG: SDLKeyboard: scancode: 00, sym: 0000, unicode: 0000, modifier: 0
18:39:29 T:4644   DEBUG: CApplication::OnKey: 0 (f200) pressed, trying fullscreen info action
18:39:29 T:4644   DEBUG: CApplication::OnKey: 0 (f200) pressed, action is
18:39:31 T:4644   DEBUG: WinEventsWin32.cpp: APPCOMMAND 6
18:39:31 T:4644   DEBUG: CApplication::OnAppCommand: appcommand 6, trying action Info
18:39:31 T:4644   DEBUG: ------ Window Init (DialogFullScreenInfo.xml) ------
18:39:31 T:4644   DEBUG: SDLKeyboard: scancode: 00, sym: 0000, unicode: 0000, modifier: 0
18:39:31 T:4644   DEBUG: CApplication::OnKey: 0 (f200) pressed, trying fullscreen info action
18:39:31 T:4644   DEBUG: CApplication::OnKey: 0 (f200) pressed, action is

Looks like a bug, tested on three keyboards.

To confirm issue, tried with a regular keyboard key (L) and exactly same commands: info, back, it worked fine. So maybe, the bug is related with appcommand/multimedia keys. Can someone confirm it?
find quote
jhsrennie Offline
Team-XBMC Developer
Posts: 7,237
Joined: Nov 2008
Reputation: 117
Location: Chester, UK
Post: #4
I think I see what is wrong. Can you give me the exact steps you use to duplicate this. The reason I ask is it depends on exactly what info windo you have open. If I just view the info for a file (video or mp3) the problem does not occur.
find quote
tinybutstrong Offline
Senior Member
Posts: 192
Joined: Sep 2010
Reputation: 0
Post: #5
I'm using the key only at full screen video.

appcommand.xml

Code:
<keymap>
  <FullscreenVideo>
    <appcommand>
      <browser_favorites>Info</browser_favorites>
    </appcommand>
  </FullscreenVideo>
  <FullscreenInfo>
    <appcommand>
     <browser_favorites>Back</browser_favorites>
    </appcommand>
  </FullscreenInfo>
</keymap>

keyboard.xml

Code:
<keymap>
  <FullscreenVideo>
    <keyboard>
      <l>Info</l>
    </keyboard>
  </FullscreenVideo>
  <FullscreenInfo>
    <keyboard>
      <l>Back</l>
    </keyboard>
  </FullscreenInfo>
</keymap>
(This post was last modified: 2012-05-10 18:42 by tinybutstrong.)
find quote
jhsrennie Offline
Team-XBMC Developer
Posts: 7,237
Joined: Nov 2008
Reputation: 117
Location: Chester, UK
Post: #6
I don't have a "Browser favourites" key on my keyboard, but I tried mapping the launch_mail appcommand to Info and that worked fine. My log shows:

Code:
DEBUG: WinEventsWin32.cpp: APPCOMMAND 15
DEBUG: CApplication::OnAppCommand: appcommand 15, trying action Info
DEBUG: SDLKeyboard: scancode: 00, sym: 0000, unicode: 0000, modifier: 0
DEBUG: CApplication::OnKey: 0 (f200) pressed, action is
DEBUG: WinEventsWin32.cpp: APPCOMMAND 15
DEBUG: CApplication::OnAppCommand: appcommand 15, trying action Info
DEBUG: SDLKeyboard: scancode: 00, sym: 0000, unicode: 0000, modifier: 0
DEBUG: CApplication::OnKey: 0 (f200) pressed, action is

the first appcommand opened the Info screen and the second closed it. However I note that your log shows:

Code:
DEBUG: ------ Window Init (DialogFullScreenInfo.xml) ------

and my log does not show this. I wonder if it's a difference between skins. Can you try with Confluence and see if you still get the problem.

Incidentally the SDLKeyboard and OnKey events can be ignored. In Windows the multimedia keys generated a keypress that XBMC ignores and also an appcommand message that XBMC processes.
(This post was last modified: 2012-05-11 10:41 by jhsrennie.)
find quote
tinybutstrong Offline
Senior Member
Posts: 192
Joined: Sep 2010
Reputation: 0
Post: #7
You are right jhsrennie, I forgot to test in confluence before to report here, my bad sorry. It is working fine. The issue is related with my default skin, xperience1080. I don't know how to fix this, so I'll switch to another key or live with the limitation, where need to hit escape to hide info dialogue.

Case closed.

Thank you!
find quote