Skip to content

Commit 7729d0d

Browse files
committed
#35 adding focus to notes after project was changed
1 parent 3f299c4 commit 7729d0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/doubleslash/keeptime/view/ViewController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public void changeProject(final Project newProject, final long minusSeconds) {
165165
controller.changeProject(newProject, minusSeconds);
166166
updateProjectView();
167167
textArea.setText("");
168+
textArea.requestFocus();
168169
}
169170

170171
private final Map<Project, Label> elapsedProjectTimeLabelMap = new HashMap<>();
@@ -539,7 +540,6 @@ private Node addProjectToProjectList(final Project p) {
539540
final MouseButton button = a.getButton();
540541
if (button == MouseButton.PRIMARY) {
541542
changeProject(p, 0);
542-
textArea.requestFocus();
543543
}
544544

545545
});

0 commit comments

Comments
 (0)