Diff
Differences From Artifact [3a244b8b88]:
- File channels/global_key.py — part of check-in [fff3b62827] at 2014-05-13 16:23:02 on branch trunk — Completer plugin meta data blocks, now utilized in channel settings dialog for nicer descriptions. (user: mario, size: 2254) [annotate] [blame] [check-ins using]
To Artifact [8937954709]:
- File channels/global_key.py — part of check-in [21d6d1cf4b] at 2015-03-28 07:33:09 on branch trunk — Basic rewrites to transition to fully plugin meta data capable implementation. (user: mario, size: 2279) [annotate] [blame] [check-ins using]
25 26 27 28 29 30 31 32 33 34 35 36 37 38 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | + | # register a key class global_key(object): module = "global_key" title = "keyboard shortcut" meta = plugin_meta() config = [ dict(name="switch_key", type="text", value="XF86Forward", description="global key for switching radio"), dict(name="switch_channel", type="text", value="bookmarks:favourite", description="station list to alternate in"), dict(name="switch_random", type="boolean", value=0, description="pick random channel, instead of next"), ] last = 0 |