Fix NSButton inspector to use \r as key equivalent for the Return key.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@29307 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2010-01-17 10:52:11 +00:00
parent 1923d95b45
commit 7384863826
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
2010-01-17 Wolfgang Lux <wolfgang.lux@gmail.com> 2010-01-17 Wolfgang Lux <wolfgang.lux@gmail.com>
* Palettes/2Controls/GormButtonAttributesInspector.m(-ok:, -revert:):
Fix the NSButton inspector to use \r as key equivalent for the
Return key.
* GormCore/GormViewWithContentViewEditor.m (-ungroup): * GormCore/GormViewWithContentViewEditor.m (-ungroup):
* GormCore/GormSplitViewEditor.m (-ungroup, -destroyAndListSubviews): * GormCore/GormSplitViewEditor.m (-ungroup, -destroyAndListSubviews):
Remove the former container view from its parent after an ungroup Remove the former container view from its parent after an ungroup

View file

@ -160,7 +160,7 @@ NSString *rtString = nil;
break; break;
case 1: // return case 1: // return
{ {
[object setKeyEquivalent: @"\n"]; [object setKeyEquivalent: @"\r"];
} }
break; break;
case 2: // delete case 2: // delete
@ -324,7 +324,7 @@ NSString *rtString = nil;
[iconMatrix selectCellWithTag: [object imagePosition]]; [iconMatrix selectCellWithTag: [object imagePosition]];
[[keyForm cellAtIndex: 0] setStringValue: key]; [[keyForm cellAtIndex: 0] setStringValue: key];
if([key isEqualToString: @"\n"]) if([key isEqualToString: @"\r"])
{ {
[keyEquiv selectItemAtIndex: 1]; [keyEquiv selectItemAtIndex: 1];
} }