Skip to content
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

Make Inspector's shortcuts available globally again #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

trunkmaster
Copy link
Member

It was broken after refactoring some times ago.

@trunkmaster trunkmaster requested a review from gcasa as a code owner October 4, 2024 23:20
@trunkmaster
Copy link
Member Author

@gcasa still waiting for review.

@gcasa
Copy link
Member

gcasa commented Nov 2, 2024

@gcasa still waiting for review.

Hey. Sorry I have been working on a new contract. So it's been busy lately. I vaguely remember taking this change out for some reason.

@trunkmaster
Copy link
Member Author

@gcasa it's not clear to me if you have any objections merging this PR. Could you please make a review?

/*
NSApplication override to make Inspector's shortcuts available globally
*/
- (void) sendEvent: (NSEvent *)theEvent
Copy link
Member

Choose a reason for hiding this comment

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

This change concerns me because it is not the default behavior in other applications. Why do the key equivalents of every inspector need to be handled GLOBALLY? Can you explain what bug this fixes for you, what is the use-case you're attempting to address?

Copy link
Member

Choose a reason for hiding this comment

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

The other issue here is that there was a reason I moved AWAY from making Gorm use an NSApplication subclass.

Copy link
Member Author

@trunkmaster trunkmaster Nov 10, 2024

Choose a reason for hiding this comment

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

This change concerns me because it is not the default behavior in other applications.

Any application can be subclassed from NSApplication and redefine default shortcuts handling. I see no problem here.

Why do the key equivalents of every inspector need to be handled GLOBALLY? Can you explain what bug this fixes for you, what is the use-case you're attempting to address?

There's no bug it's usability enhancement. For example, if user wants to see what connections selected object has (whithout focus switch) it's handy to press shortcut whithout moving mouse and selecting "Connections" sections of Inpector.

Copy link
Member Author

Choose a reason for hiding this comment

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

The other issue here is that there was a reason I moved AWAY from making Gorm use an NSApplication subclass.

Could you please explain that reason? It might be useful for development practice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants