Linux Keymapping error: no such action 'q' defined
#1
Hello,

I've configured vlc as external player. If I use it from command-line the "q" key should quit the video.
Now I would like to map the "q" key from XBMC to be sent to the VLC player when it plays a video.
I've created this file

Code:
cat .xbmc/userdata/keymaps/keyboard.xml

<keymap>
  <FullScreenVideo>
    <keyboard>
      <q>q</q>
    </keyboard>
  </FullScreenVideo>
  <MyVideoFiles>
    <keyboard>
      <q>q</q>
    </keyboard>
  </MyVideoFiles>
</keymap>

But on startup I log:

Code:
03:29:03 T:3044016688    INFO: Loading special://masterprofile/keymaps/keyboard.xml
03:29:03 T:3044016688   ERROR: Keymapping error: no such action 'q' defined

and pressing the "q" key on my keyboard to quit the video I log:

Code:
03:29:25 T:3044016688   DEBUG: Keyboard: scancode: 10, sym: 0071, unicode: 0071, modifier: 0
03:29:25 T:3044016688   DEBUG: OnKey: q (f051) pressed, action is Queue

What's wrong? How to send the "q" key to the underline vlc?
Or how to set-up it?

Many thanks!

Simon
Reply
#2
Set the key to run a script that runs killall vlc.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#3
besides what nickr said, you have a logic error. What you did is remapping <q> to the literal "q" key. What you want here is to map it to an action thats either defined in xbmc(built-in) or a script that does whatever you want.
Reply
#4
Ok, understood! :-)
I'll check out how to implement directly some scripts calls.

Thanks to all!

Simon
Reply

Logout Mark Read Team Forum Stats Members Help
Keymapping error: no such action 'q' defined0