Skip to content

Use command keys for window shortcuts in Qt on OSX #9750

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2017

Conversation

dstansby
Copy link
Member

@dstansby dstansby commented Nov 11, 2017

Fixes #2140

Other backends use "cmd" instead of "super" to denote the command key - with this change all the standard close/open/save shortcuts work on Qt with the command key.

@dstansby dstansby added this to the v2.2 milestone Nov 11, 2017
@QuLogic
Copy link
Member

QuLogic commented Nov 12, 2017

Hmm, but I'm pretty sure Meta is Super on Linux. Is this properly portable off macOS?

@dstansby
Copy link
Member Author

Turns out only the macOS specific lines need changing to work.

Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great!

@dopplershift dopplershift merged commit 0943a6c into matplotlib:master Dec 4, 2017
@dstansby dstansby deleted the osx-qt5-command branch December 4, 2017 22:21
@tacaswell
Copy link
Member

should this be backported to 2.1.x?

@dopplershift
Copy link
Contributor

I suppose it's a bug fix, so sure.

@QuLogic QuLogic modified the milestones: needs sorting, v2.2.0 Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make Cmd-W close the window using QT4 on OS X
5 participants