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

Skip to content

Commit a545253

Browse files
tonadevQuLogic
authored andcommitted
Make if condition cleaner on lib/matplotlib/backends/backend_wx.py
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent 84cdf22 commit a545253

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ def _get_key(self, event):
723723
[event.ControlDown, 'ctrl', 'control'],
724724
[event.AltDown, 'alt', 'alt'],
725725
[event.ShiftDown, 'shift', 'shift'],):
726-
if meth() and not key_name == key:
726+
if meth() and key_name != key:
727727
if not (key_name == 'shift' and key.isupper()):
728728
key = '{0}+{1}'.format(prefix, key)
729729
break

0 commit comments

Comments
 (0)