Default quit keymap - support for cmd+w on OSX#1902
Default quit keymap - support for cmd+w on OSX#1902efiring merged 1 commit intomatplotlib:masterfrom
Conversation
|
Thanks @cimarronm - I agree that any user on OSX should expect Is this on the macosx backend? For me, (tkagg on mountain lion) |
|
Yeah, this is on the macosx backend. It is the only one which generates a cmd modifier so I think the default keymap modification from |
…X would have a native cmd+w to close the window.
Default quit keymap - support for cmd+w on OSX
|
This works on the macosx backend, and does not change the others. tkagg apparently internally translates Ctrl-W into Cmd-W. Wx does the same, based on my version 2.9, for which mpl is mostly broken. qt4agg backend did nothing with Cmd-W before, and still does nothing. That's because it is calling the command prefix "super" instead of "cmd", after having un-done the swap that qt does: http://qt-project.org/doc/qt-4.8/qkeysequence.html. |
I'd be amenable to opening an issue for that. Any objections? |
|
No objections. |
Updated default quit keymap to include cmd+w so people running on OS X would have a native cmd+w to close the window.