Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

keymapparser: handle generic key entries before device specific ones

This ensures we'll show the best match in the help screen.
Generic keys are usually keys with only a single function,
e.g. KEY_PAUSE for pause. If a remotecontrol has this key,
we prefer to show that one in the help screen, rather than
a yellow key for instance.
  • Loading branch information...
commit 34cd98d8e90f3be20f92e81a0a018d68096207f5 1 parent 0983614
pieterg pieterg authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 keymapparser.py
4 keymapparser.py
@@ -63,11 +63,11 @@ def readKeymap(filename):
63 63 context = cmap.attrib.get("context")
64 64 assert context, "map must have context"
65 65
  66 + parseKeys(context, filename, p, "generic", cmap)
  67 +
66 68 for device in cmap.findall("device"):
67 69 parseKeys(context, filename, p, device.attrib.get("name"), device)
68 70
69   - parseKeys(context, filename, p, "generic", cmap)
70   -
71 71 def removeKeymap(filename):
72 72 p = enigma.eActionMap.getInstance()
73 73 p.unbindKeyDomain(filename)

0 comments on commit 34cd98d

Please sign in to comment.
Something went wrong with that request. Please try again.