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
Manage correctly the key combination Ctrl + Tab under macOS #1362
base: master
Are you sure you want to change the base?
Conversation
…ut method. At least two solutions exists([here](https://bugreports.qt.io/browse/QTBUG-8596?focusedCommentId=321526&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-321526) and (there)[https://codereview.qt-project.org/#/c/161214/1/src/plugins/platforms/cocoa/qnsview.mm]). However, the first one use a private/undocumented API. The second is then used.
…by NSEventModifierFlagControl.
Do you have permission to use the code if you are not the author? |
@intrigus I've sent an email to the original author to answer to your questions. |
It looks as though the code in this PR comes from QT, and is protected by a LGPL license. We can not simply copy the code without at minimum keeping the origin, authorship, and license intact. In my opinion (not a lawyer) we cannot include this code at all without explicit written permission from QT (and/or the original author) granting us an unrestricted license that does not carry with it the same responsibilities of the LGPL. Are the comments included in the patch relevant to GLFW? I notice terms like |
@tombsar |
Good news, we have the rights to use this code if Qt keeps the copyright! I proposed to modify the proposed PR as following: // The Qt company has all the rights on the following code.
// The GLFW project has the permission to use it in its source code
// but the Qt company keeps the copyright
// The original source code is here: https://codereview.qt-project.org/#/c/161214/1/src/plugins/platforms/cocoa/qnsview.mm
// =========== QT COPYRIGHT BEGIN =========== //
// At the moment the only reason we define this method
// is Ctrl-tab key event never reaching any view at all.
// ...
...
// =========== QT COPYRIGHT END =========== // What do you think? This PR will be very helpful for Dear ImGui to pass between windows with the CTRL + Tab shortcut. The following comment has a GIF to illustrate the behaviour: ocornut/imgui#787 (comment) |
From qutebrowser/qutebrowser#2142 and specifically this comment:
At least two solutions exists (here and there) to fix the problem. However, the first one use a private/undocumented API. The second is used by this PR.
NOTE: I am not the author of the proposed code.