X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FActionMap.py;h=d2e908e610fe1bc2a0e805db182d404b0c412206;hb=6f6514f64e4c769da57acd9c6070bc658c918fe8;hp=ee3d31db615d0da035f11b821480d8616f3810bb;hpb=9a0d02d2e74c24dcc7b8bfe6df937e92c8af1d0d;p=vuplus_dvbapp diff --git a/lib/python/Components/ActionMap.py b/lib/python/Components/ActionMap.py index ee3d31d..d2e908e 100644 --- a/lib/python/Components/ActionMap.py +++ b/lib/python/Components/ActionMap.py @@ -44,7 +44,9 @@ class ActionMap: def action(self, context, action): print " ".join(("action -> ", context, action)) if self.actions.has_key(action): - self.actions[action]() + res = self.actions[action]() + if res is not None: + return res return 1 else: print "unknown action %s/%s! typo in keymap?" % (context, action) @@ -57,7 +59,9 @@ class NumberActionMap(ActionMap): def action(self, contexts, action): numbers = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] if (action in numbers and self.actions.has_key(action)): - self.actions[action](int(action)) + res = self.actions[action](int(action)) + if res is not None: + return res return 1 else: return ActionMap.action(self, contexts, action)