aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-12-30 18:35:59 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-12-30 18:35:59 +0100
commitf6cdbb1d53196959add0ceb9c65f2cf9401299c8 (patch)
treed63cbe18cff80505c5d110b0f1de2b9591ac9fa7 /lib/python
parent9e9404e05b7b080b2e4b752794656bf68b629f16 (diff)
downloadenigma2-f6cdbb1d53196959add0ceb9c65f2cf9401299c8.tar.gz
enigma2-f6cdbb1d53196959add0ceb9c65f2cf9401299c8.zip
InfoBarGenerics.py: fix handling for unused key indication when two times the same key is pressed, small cleanup
Diffstat (limited to 'lib/python')
-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 95b0e8c1..471b2510 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