mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-31 21:21:08 +00:00
opt-return or opt-enter in url bar downloads link (bug 187650, r=smorgan sr=pink)
This commit is contained in:
parent
39777c2757
commit
7f41e8c52f
@ -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
|
||||
//////////////////////////////////////
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user