Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0da9d1e

Browse files
Alejandro Garcíatacaswell
authored andcommitted
Make Qt backend consistent when pressing multiple modifiers
1 parent f2c65cd commit 0da9d1e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/matplotlib/backends/backend_qt5.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,11 @@ def _get_key(self, event):
411411
else:
412412
key = key.lower()
413413

414-
return '+'.join(mods + [key])
414+
for mod in mods:
415+
key = '{0}+{1}'.format(mod, key)
416+
break
417+
418+
return key
415419

416420
def flush_events(self):
417421
# docstring inherited

0 commit comments

Comments
 (0)