mirror of
https://github.com/iterate-ch/cyberduck.git
synced 2026-05-26 19:10:49 +00:00
Set first responder field in window after popover shows.
This commit is contained in:
@@ -362,6 +362,7 @@ public class ProxyController extends AbstractController {
|
||||
this.positioningRect = positioningRect;
|
||||
this.controller = controller;
|
||||
this.controller.addHandler(this);
|
||||
this.controller.addListener(this);
|
||||
this.behaviour = behaviour;
|
||||
}
|
||||
|
||||
@@ -378,7 +379,6 @@ public class ProxyController extends AbstractController {
|
||||
popover.setContentViewController(viewController);
|
||||
popover.showRelativeToRect_ofView_preferredEdge(positioningRect, positioningView,
|
||||
FoundationKitFunctions.NSRectEdge.NSMinYEdge);
|
||||
controller.addListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -410,6 +410,11 @@ public class ProxyController extends AbstractController {
|
||||
this.callback = callback;
|
||||
}
|
||||
|
||||
@Delegate
|
||||
public void popoverDidShow(final NSNotification notification) {
|
||||
controller.focus();
|
||||
}
|
||||
|
||||
@Delegate
|
||||
public void popoverWillClose(final NSNotification notification) {
|
||||
final NSObject popoverCloseReasonValue = notification.userInfo().objectForKey(NSPopover.NSPopoverCloseReasonKey);
|
||||
|
||||
Reference in New Issue
Block a user