diff options
Diffstat (limited to 'win32.py')
-rwxr-xr-x | win32.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)
|