X Tutup
Skip to content

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

Merged
dopplershift merged 1 commit intomatplotlib:masterfrom
dstansby:osx-qt5-command
Dec 4, 2017
Merged

Use command keys for window shortcuts in Qt on OSX#9750
dopplershift merged 1 commit intomatplotlib:masterfrom
dstansby:osx-qt5-command

Conversation

@dstansby
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

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

Copy link
Copy Markdown
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
Copy Markdown
Member

should this be backported to 2.1.x?

@dopplershift
Copy link
Copy Markdown
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

X Tutup