mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:20:38 +00:00
* NSCell.m acceptsFirstResponder implement, editWithFrame: adjust further,
selectWithFrame: preliminary implementation. * NSButton.m: acceptsFirstResponder implement. * NSText.m: shouldDrawInsertionPoint test for field editor status. * NSTextField.m: mouseDown: use field editor instead of previous non OS text field cell editor code, textShouldEndEditing: implement. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3466 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bf5137b858
commit
cb3439381e
7 changed files with 238 additions and 247 deletions
|
@ -284,12 +284,12 @@ id gnustep_gui_nsbutton_class = nil;
|
|||
}
|
||||
|
||||
//
|
||||
// Handling Events and Action Messages
|
||||
// Determining the first responder
|
||||
//
|
||||
- (BOOL)acceptsFirstResponder
|
||||
{
|
||||
return [self keyEquivalent] != nil;;
|
||||
}
|
||||
{
|
||||
return [cell acceptsFirstResponder] && ([self keyEquivalent] != nil);
|
||||
}
|
||||
|
||||
- (void) keyDown: (NSEvent*)theEvent
|
||||
{
|
||||
|
@ -297,6 +297,10 @@ id gnustep_gui_nsbutton_class = nil;
|
|||
[super keyDown: theEvent];
|
||||
}
|
||||
|
||||
//
|
||||
// Handling Events and Action Messages
|
||||
//
|
||||
|
||||
- (void) performClick: (id)sender
|
||||
{
|
||||
[cell performClick: sender];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue