Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b35d33 commit 9a21943Copy full SHA for 9a21943
lib/matplotlib/widgets.py
@@ -1248,6 +1248,15 @@ def _onmove(self, event):
1248
"""Cursor move event handler and validator"""
1249
if not self.ignore(event):
1250
event = self._clean_event(event)
1251
+ # update the state
1252
+ if 'move' in self.state:
1253
+ self.state = ['move']
1254
+ else:
1255
+ self.state = []
1256
+ if 'shift' in event.key:
1257
+ self.state.append('square')
1258
+ if 'ctrl' in event.key or 'control' in event.key:
1259
+ self.state.append('center')
1260
self.onmove(event)
1261
1262
def onmove(self, event):
0 commit comments