opt-return or opt-enter in url bar downloads link (bug 187650, r=smorgan sr=pink)

This commit is contained in:
pinkerton%aol.net 2006-03-19 16:25:18 +00:00
parent 39777c2757
commit 7f41e8c52f

View File

@ -269,6 +269,13 @@ public:
return nil;
}
// Opt-return and opt-enter should download the URL in the location bar
- (void)insertNewlineIgnoringFieldEditor:(id)sender
{
BrowserWindowController* bwc = (BrowserWindowController *)[[[self delegate] window] delegate];
[bwc saveURL:nil url:[self string] suggestedFilename:nil];
}
@end
//////////////////////////////////////