fix bug 315337, make bookmark description field tabbable.

r=wevah, sr=sfraser
This commit is contained in:
hwaara%gmail.com 2005-12-16 14:21:12 +00:00
Родитель 9a4c7315bb
Коммит 5591ecd3bb
1 изменённых файлов: 12 добавлений и 1 удалений

Просмотреть файл

@ -129,8 +129,19 @@ static BookmarkInfoController* gSharedBookmarkInfoController = nil;
[super dealloc];
}
// We intercept the tab key in order to let the user tab to/from the bookmark
// description textfield (even though it's a textview)
-(BOOL)textView:(NSTextView *)textView doCommandBySelector:(SEL)command
{
if (command == @selector(insertTab:)) {
[[self window] selectNextKeyView:nil];
return YES;
}
return NO;
}
// for the NSTextFields
-(void)controlTextDidEndEditing: (NSNotification*) aNotification
-(void)controlTextDidEndEditing:(NSNotification *)aNotification
{
[self commitChanges:[aNotification object]];
[[mFieldEditor undoManager] removeAllActions];