Skip to content

Commit 2db6361

Browse files
committed
Select text instead of assigning first responder.
1 parent 81aa257 commit 2db6361

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

osx/src/main/java/ch/cyberduck/ui/cocoa/controller/FileController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public NSView getAccessoryView(final NSAlert alert) {
5555
@Override
5656
protected void focus(final NSAlert alert) {
5757
super.focus(alert);
58-
alert.window().makeFirstResponder(inputField);
5958
inputField.selectText(null);
6059
}
6160

osx/src/main/java/ch/cyberduck/ui/cocoa/controller/LoginController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ public NSView getAccessoryView(final NSAlert alert) {
154154
protected void focus(final NSAlert alert) {
155155
super.focus(alert);
156156
if(options.user) {
157-
window.makeFirstResponder(usernameField);
157+
usernameField.selectText(null);
158158
}
159159
if(options.password && !StringUtils.isBlank(bookmark.getCredentials().getUsername())) {
160-
window.makeFirstResponder(passwordField);
160+
passwordField.selectText(null);
161161
}
162162
}
163163

0 commit comments

Comments
 (0)