-
Notifications
You must be signed in to change notification settings - Fork 20
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
base: master
Are you sure you want to change the base?
Conversation
@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. |
@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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
It was broken after refactoring some times ago.