aboutsummaryrefslogtreecommitdiff
path: root/win32.py
diff options
context:
space:
mode:
Diffstat (limited to 'win32.py')
-rwxr-xr-xwin32.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32.py b/win32.py
index bff980b..ee146e6 100755
--- a/win32.py
+++ b/win32.py
@@ -87,10 +87,11 @@ class Listener(object):
if title.value is None:
return
title = str(title.value).lower()
- for pattern, code in self.mapping.items():
+ for pattern in reversed(self.mapping):
if pattern == "default":
continue
if pattern in title:
+ code = self.mapping[pattern]
self.queue.put ( (code, None) )
return
default = self.mapping.get("default", None)