Posts: 26,215
Joined: Oct 2003
Reputation:
187
IMO the best change we could do here is define contexts for keymaps (i.e. define the conditions needed) and use them instead of the silly window conditions where everything has to be repeated a bunch of times.
e.g. Play really only has different behaviour if something is already playing or paused or if you're focused on a list.
Posts: 1,514
Joined: Jul 2010
Reputation:
60
Wouldn't this lead to problems as there were so many keys to define that the conditions would also be duplicates?
- - - Tribute to Metallica - - -
If I managed to help you, please click my reputation
Posts: 26,215
Joined: Oct 2003
Reputation:
187
The problem now is that the conditions are too rigid - they're defined on windows only.
Define proper contexts that actually make sense and the number of contexts required drops away.
Simple contexts:
1. Global
2. In list
3. Playing song/video/slideshow
4. In fullscreen
For most users, that's probably enough.
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
2013-03-29, 13:16
(This post was last modified: 2013-03-29, 13:17 by `Black.)
While adding the metadata actors script to my skin, I would like to open the actor info while pressing "i" in the actors list. Another section would be advanced launcher where it could be really helpful if users could open the game info dialog with "i". I don't know how this could be realized but conditional key mapping could be a way. It would be even better if a skinner could define an action for e.g. "i" with conditions so it's default for everyone... a skin keymap so to say. To avoid a completely different keymapping across skins, it should only be possible to map a default key if they are not used, e.g. "i" for actors.
Posts: 532
Joined: Sep 2010
Reputation:
8
I know I'm digging up an old topic but I would love to see conditional keymaps. Especially if I could map my keys different ways based on what skin I am in as certain skins add extra views and dialogs which are mapped to a key that is shared with another feature liek audio offset in my case but that only happens when I have something playing.
Posts: 16
Joined: Oct 2016
Reputation:
0
So is this subject dead? I still think it is a great idea. I'm trying to make a modification to appease the wife. Our old Netgear media box would pop up a message anytime you would press OK and add a song to the queue (add to queue was the default for Netgear). She wants that visual feedback again.
My idea was to use a notification action in the keymap.xml but would need the following qualifications or conditions.
<enter>Notification(Added to Queue,,200)</enter>
Only on the music navigation window (MyMusicNav.xml)
Only if the listitem is a song title (is ListItem.title?)
The ok button is pressed (keymap option for music window)
optionally only when "Queue Song on Selection" is enabled.
Or does anyone else have a suggestion on how to accomplish this?
Thanks,
Rob