Skip to content

Commit 624adb0

Browse files
committed
Merge branch 'develop' into bugfix/comments_of_shortcut_in_background
2 parents db06465 + 14e784e commit 624adb0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<maven.compiler.source>1.8</maven.compiler.source>
3838
<maven.compiler.target>1.8</maven.compiler.target>
3939

40-
<maven-dependency-check.version>5.1.0</maven-dependency-check.version>
40+
<maven-dependency-check.version>5.2.1</maven-dependency-check.version>
4141
<!-- USING HTML,XML (comma-separated list) did not work with plugin version 5.1.0 -->
4242
<maven-dependency-check.format>ALL</maven-dependency-check.format>
4343
<maven-dependency-check.failOnError>true</maven-dependency-check.failOnError>
@@ -70,6 +70,7 @@
7070
<artifactId>flyway-core</artifactId>
7171
</dependency>
7272

73+
<!-- https://mvnrepository.com/artifact/com.1stleg/jnativehook -->
7374
<dependency>
7475
<groupId>com.1stleg</groupId>
7576
<artifactId>jnativehook</artifactId>

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

Lines changed: 6 additions & 2 deletions
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<>();
@@ -371,6 +372,7 @@ private void settingsClicked() {
371372
private void calendarClicked() {
372373
LOG.info("Calendar clicked");
373374
this.mainStage.setAlwaysOnTop(false);
375+
reportStage.setAlwaysOnTop(true);
374376
reportController.update();
375377
reportStage.show();
376378
}
@@ -463,7 +465,10 @@ private void loadSubStages() {
463465
reportStage.setScene(reportScene);
464466
reportStage.setTitle("Report");
465467
reportStage.setResizable(false);
466-
reportStage.setOnHiding(windowEvent -> this.mainStage.setAlwaysOnTop(true));
468+
reportStage.setOnHiding(windowEvent -> {
469+
reportStage.setAlwaysOnTop(false);
470+
this.mainStage.setAlwaysOnTop(true);
471+
});
467472

468473
// Settings stage
469474
final FXMLLoader fxmlLoader2 = createFXMLLoader(RESOURCE.FXML_SETTINGS);
@@ -796,5 +801,4 @@ public void addNewProject(final ActionEvent ae) {
796801
realignProjectList();
797802
});
798803
}
799-
800804
}

0 commit comments

Comments
 (0)