mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: MacCloud/DropBox step-39: support ESC and Command+W in Options Dialog
This commit is contained in:
parent
6218ba73cf
commit
265223acdb
1 changed files with 17 additions and 0 deletions
|
|
@ -149,6 +149,8 @@ type
|
|||
procedure onSelectedConnectionChanged( const selectedIndex: Integer );
|
||||
public
|
||||
procedure windowWillClose (notification: NSNotification);
|
||||
procedure cancelOperation(sender: id); override;
|
||||
function performKeyEquivalent(theEvent: NSEvent): ObjCBOOL; override;
|
||||
end;
|
||||
|
||||
{ TConnectionConfigItems }
|
||||
|
|
@ -491,6 +493,21 @@ begin
|
|||
NSApplication(NSAPP).stopModal;
|
||||
end;
|
||||
|
||||
procedure TCloudOptionsWindow.cancelOperation(sender: id);
|
||||
begin
|
||||
self.close;
|
||||
end;
|
||||
|
||||
function TCloudOptionsWindow.performKeyEquivalent(theEvent: NSEvent): ObjCBOOL;
|
||||
begin
|
||||
if theEvent.charactersIgnoringModifiers.isEqualToString(NSSTR('w')) and
|
||||
((theEvent.modifierFlags and NSCommandKeyMask) <> 0 ) then begin
|
||||
self.close;
|
||||
Result:= True;
|
||||
end else
|
||||
Result:= inherited;
|
||||
end;
|
||||
|
||||
{ TConnectionListView }
|
||||
|
||||
function TConnectionListView.numberOfRowsInTableView(tableView: NSTableView
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue