I updated matplotlib from v1.1 to v1.2.0 win32. I use mpl_connect to handle keyevents. Where I used to check keyrelease event.key for e.g. 'q' or 'escape', now all keys are 'alt+q', 'alt+escape'. Any idea why ?
Example code:
import matplotlib.pyplot as plt
def close_fig(event):
print event.key
if event.key == 'q':
plt.close(event.canvas.figure)
fig = plt.figure()
ax = fig.add_subplot(111)
fig.canvas.mpl_connect('key_release_event', close_fig)
data = [0,10,11,12]
ax.plot(data)
plt.show()