summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Holland <william.holland@codethink.co.uk>2015-05-30 22:39:43 +0100
committerWilliam Holland <william.holland@codethink.co.uk>2015-05-30 22:39:43 +0100
commit83c5a6cbc454fe70328f12612c73a8c494ba1007 (patch)
tree9aaaf5a76fe0efe7ab06be220db300a39a5b5677
parent95307cc4ac5b6d9d901b997197d08a3fb6f5634e (diff)
downloadkeyboard-python-83c5a6cbc454fe70328f12612c73a8c494ba1007.tar.bz2
Fix KeyCombination name only working once
because python is silly
-rw-r--r--keyboardpython/key.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboardpython/key.py b/keyboardpython/key.py
index 5e2d618..123843f 100644
--- a/keyboardpython/key.py
+++ b/keyboardpython/key.py
@@ -25,7 +25,7 @@ class KeyCombination:
self.keys = list(set(keys))
def __str__(self):
- keys = self.keys
+ keys = self.keys[:]
if not self.keys: return ''
to_print = keys.pop(0).name
while keys: to_print += ' %s' % keys.pop(0).name