doubleSlashde / KeepTime

Application to track your time spent on different projects each day.
GNU General Public License v3.0
8 stars 3 forks source link

Notefield of Main UI loses focus #88

Closed JSchraff closed 1 year ago

JSchraff commented 2 years ago

While typing the notes in the main UI when the mouse isn't hovering ovet the Main UI the textfield loses focus until the mouse hovers over it again.

Death111 commented 2 years ago

As discussed some time ago this is not a bug. I did this on purpose to stop the cursor from blinking in the notes field all day long. I agree that there may be a nicer solution to this.

Death111 commented 1 year ago

Actually the textArea is not editable anymore on mouse leave (it does not loose focus). See https://github.com/doubleSlashde/KeepTime/blob/aad505c0d4ba69e465be6bb749ba49f8ea7ae440/src/main/java/de/doubleslash/keeptime/view/ViewController.java#L369

PhiGegner commented 1 year ago

Would be nice to have an option in the settings to enable/disable this behavior.

Death111 commented 1 year ago

A solution which stops the blinking cursor while KeepTime is not active would be sufficient. Maybe there is an "application not in focus anymore" event which we could use instead of the mouse hover event.

Death111 commented 1 year ago

We could remove the previous "workaround" as it now works without it. Looks like it was fixed in some java update :)