Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Default quit keymap - support for cmd+w on OSX#1902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
efiring merged 1 commit intomatplotlib:masterfromcimarronm:native_osx_quit
May 11, 2013

Conversation

cimarronm
Copy link
Contributor

Updated default quit keymap to include cmd+w so people running on OS X would have a native cmd+w to close the window.

@pelson
Copy link
Member

Thanks@cimarronm - I agree that any user on OSX should expectcmd+w to quit the plot window.

Is this on the macosx backend? For me, (tkagg on mountain lion)cmd+w quits anyway, I'd be interested to know how many of the other backends are the same. Maybe we should have a specific (non-configurable) keymapping in the macosx backend which adds this directly.

@cimarronm
Copy link
ContributorAuthor

Yeah, this is on the macosx backend. It is the only one which generates a cmd modifier so I think the default keymap modification fromctrl+w toctrl+w, cmd+w should be safe.

…X would have a native cmd+w to close the window.
efiring added a commit that referenced this pull requestMay 11, 2013
Default quit keymap - support for cmd+w on OSX
@efiringefiring merged commit9e734b6 intomatplotlib:masterMay 11, 2013
@efiring
Copy link
Member

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.

@dmcdougall
Copy link
Member

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?

@efiring
Copy link
Member

No objections.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@cimarronm@pelson@efiring@dmcdougall

[8]ページ先頭

©2009-2025 Movatter.jp