mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
fix bug 315337, make bookmark description field tabbable.
r=wevah, sr=sfraser
This commit is contained in:
parent
9a4c7315bb
commit
5591ecd3bb
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user