mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-24 19:02:38 +00:00
Add support for the context help cursor.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23708 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3005771e57
commit
c201ae734e
6 changed files with 50 additions and 24 deletions
|
@ -180,14 +180,16 @@
|
|||
|
||||
- (void) helpRequested: (NSEvent*)theEvent
|
||||
{
|
||||
if (![[NSHelpManager sharedHelpManager]
|
||||
showContextHelpForObject: self
|
||||
locationHint: [theEvent locationInWindow]])
|
||||
if (_next_responder)
|
||||
{
|
||||
[_next_responder helpRequested: theEvent];
|
||||
return;
|
||||
}
|
||||
if ([[NSHelpManager sharedHelpManager]
|
||||
showContextHelpForObject: self
|
||||
locationHint: [theEvent locationInWindow]] == NO)
|
||||
{
|
||||
if (_next_responder)
|
||||
{
|
||||
[_next_responder helpRequested: theEvent];
|
||||
return;
|
||||
}
|
||||
}
|
||||
[NSHelpManager setContextHelpModeActive: NO];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue