aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/InfoBarGenerics.py
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-12-30 18:35:59 +0100
committerthedoc <thedoc@atom.(none)>2010-01-01 15:25:47 +0100
commitb3813095d2b2d9b546eeb075de3bdb78e48987e6 (patch)
tree8672fdd05df3fb8bb1fb5bd318577b78eb5fa017 /lib/python/Screens/InfoBarGenerics.py
parent1607b76101995b8ddfda6e6199e0be0b4b7d9527 (diff)
downloadenigma2-b3813095d2b2d9b546eeb075de3bdb78e48987e6.tar.gz
enigma2-b3813095d2b2d9b546eeb075de3bdb78e48987e6.zip
InfoBarGenerics.py: fix handling for unused key indication when two times the same key is pressed, small cleanup
Diffstat (limited to 'lib/python/Screens/InfoBarGenerics.py')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 805b0f27..a08621c8 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -58,15 +58,13 @@ class InfoBarUnhandledKey:
self.onLayoutFinish.append(self.unhandledKeyDialog.hide)
eActionMap.getInstance().bindAction('', -0x7FFFFFFF, self.actionA) #highest prio
eActionMap.getInstance().bindAction('', 0x7FFFFFFF, self.actionB) #lowest prio
- self.key = -1;
- self.flags = 0;
+ self.flags = (1<<1);
self.uflags = 0;
#this function is called on every keypress!
def actionA(self, key, flag):
if flag != 4:
- if self.key != key:
- self.key = key
+ if self.flags & (1<<1):
self.flags = self.uflags = 0
self.flags |= (1<<flag)
if flag == 1: # break