mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-23 02:42:11 +03:00
Cmd-W closes active tab.
svn path=/trunk/netsurf/; revision=11497
This commit is contained in:
parent
241510c0e2
commit
80cdf73f6b
@ -44,6 +44,7 @@
|
||||
@property (readwrite, assign, nonatomic) BOOL canGoForward;
|
||||
|
||||
- (IBAction) newTab: (id) sender;
|
||||
- (IBAction) closeCurrentTab: (id) sender;
|
||||
|
||||
- (void) addTab: (BrowserViewController *)browser;
|
||||
- (void) removeTab: (BrowserViewController *)browser;
|
||||
|
@ -113,6 +113,11 @@ extern NSString * const kHomepageURL;
|
||||
browser_window_create( [homepageURL UTF8String], clone, NULL, false, true );
|
||||
}
|
||||
|
||||
- (IBAction) closeCurrentTab: (id) sender;
|
||||
{
|
||||
[self removeTab: activeBrowser];
|
||||
}
|
||||
|
||||
- (void) setActiveBrowser: (BrowserViewController *)newBrowser;
|
||||
{
|
||||
activeBrowser = newBrowser;
|
||||
|
@ -780,14 +780,6 @@
|
||||
</object>
|
||||
<int key="connectionID">142</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBActionConnection" key="connection">
|
||||
<string key="label">performClose:</string>
|
||||
<reference key="source" ref="1014"/>
|
||||
<reference key="destination" ref="776162233"/>
|
||||
</object>
|
||||
<int key="connectionID">193</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBActionConnection" key="connection">
|
||||
<string key="label">performZoom:</string>
|
||||
@ -1060,6 +1052,14 @@
|
||||
</object>
|
||||
<int key="connectionID">839</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBActionConnection" key="connection">
|
||||
<string key="label">closeCurrentTab:</string>
|
||||
<reference key="source" ref="1014"/>
|
||||
<reference key="destination" ref="776162233"/>
|
||||
</object>
|
||||
<int key="connectionID">840</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<object class="NSArray" key="orderedObjects">
|
||||
@ -1905,22 +1905,31 @@
|
||||
</object>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">839</int>
|
||||
<int key="maxID">840</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">BrowserView</string>
|
||||
<string key="superclassName">NSView</string>
|
||||
<string key="superclassName">ScrollableView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">BrowserView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">BrowserViewController</string>
|
||||
<string key="superclassName">NSViewController</string>
|
||||
<object class="NSMutableDictionary" key="actions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>backForwardSelected:</string>
|
||||
<string>goBack:</string>
|
||||
<string>goForward:</string>
|
||||
<string>navigate:</string>
|
||||
<string>reloadPage:</string>
|
||||
<string>showHistory:</string>
|
||||
<string>stopLoading:</string>
|
||||
<string>zoomIn:</string>
|
||||
<string>zoomOriginal:</string>
|
||||
@ -1936,16 +1945,18 @@
|
||||
<string>id</string>
|
||||
<string>id</string>
|
||||
<string>id</string>
|
||||
<string>id</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="actionInfosByName">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>backForwardSelected:</string>
|
||||
<string>goBack:</string>
|
||||
<string>goForward:</string>
|
||||
<string>navigate:</string>
|
||||
<string>reloadPage:</string>
|
||||
<string>showHistory:</string>
|
||||
<string>stopLoading:</string>
|
||||
<string>zoomIn:</string>
|
||||
<string>zoomOriginal:</string>
|
||||
@ -1953,6 +1964,10 @@
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">backForwardSelected:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">goBack:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
@ -1962,11 +1977,11 @@
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">reloadPage:</string>
|
||||
<string key="name">navigate:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">showHistory:</string>
|
||||
<string key="name">reloadPage:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
<object class="IBActionInfo">
|
||||
@ -1987,47 +2002,96 @@
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="outlets">
|
||||
<string key="NS.key.0">browserView</string>
|
||||
<string key="NS.object.0">BrowserView</string>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
|
||||
<string key="NS.key.0">browserView</string>
|
||||
<object class="IBToOneOutletInfo" key="NS.object.0">
|
||||
<string key="name">browserView</string>
|
||||
<string key="candidateClassName">BrowserView</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">BrowserView.h</string>
|
||||
<string key="minorKey">BrowserViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">BrowserWindowController</string>
|
||||
<string key="superclassName">NSWindowController</string>
|
||||
<object class="NSMutableDictionary" key="actions">
|
||||
<string key="NS.key.0">newTab:</string>
|
||||
<string key="NS.object.0">id</string>
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>closeCurrentTab:</string>
|
||||
<string>newTab:</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>id</string>
|
||||
<string>id</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="actionInfosByName">
|
||||
<string key="NS.key.0">newTab:</string>
|
||||
<object class="IBActionInfo" key="NS.object.0">
|
||||
<string key="name">newTab:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>closeCurrentTab:</string>
|
||||
<string>newTab:</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">closeCurrentTab:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">newTab:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="outlets">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>activeBrowserController</string>
|
||||
<string>navigationControl</string>
|
||||
<string>tabBar</string>
|
||||
<string>tabView</string>
|
||||
<string>urlField</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>NSObjectController</string>
|
||||
<string>NSSegmentedControl</string>
|
||||
<string>PSMTabBarControl</string>
|
||||
<string>NSTabView</string>
|
||||
<string>URLFieldCell</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>activeBrowserController</string>
|
||||
<string>navigationControl</string>
|
||||
<string>tabBar</string>
|
||||
<string>tabView</string>
|
||||
<string>urlField</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">activeBrowserController</string>
|
||||
<string key="candidateClassName">NSObjectController</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">navigationControl</string>
|
||||
<string key="candidateClassName">NSSegmentedControl</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">tabBar</string>
|
||||
<string key="candidateClassName">PSMTabBarControl</string>
|
||||
@ -2036,6 +2100,10 @@
|
||||
<string key="name">tabView</string>
|
||||
<string key="candidateClassName">NSTabView</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">urlField</string>
|
||||
<string key="candidateClassName">URLFieldCell</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
@ -2083,13 +2151,6 @@
|
||||
<string key="minorKey">NetSurfAppDelegate.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PSMTabBarControl</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">PSMTabBarControl/PSMProgressIndicator.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PSMTabBarControl</string>
|
||||
<reference key="sourceIdentifier" ref="831067236"/>
|
||||
@ -2172,6 +2233,14 @@
|
||||
<string key="minorKey">TreeView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">URLFieldCell</string>
|
||||
<string key="superclassName">NSTextFieldCell</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">URLFieldCell.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
|
Loading…
Reference in New Issue
Block a user