keepassxreboot/keepassxc

Only perform Entry Level Auto-Type when the focus was changed in the last X seconds

Open

#6,205 建立於 2021年2月28日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)C++ (27,139 star) (1,797 fork)batch import
feature: Auto-Typehelp wanted

描述

Summary

For clipboard data there is a timer to delete it. What about to do something similar for the last focus Auto-Type?

The idea is to perform Entry Level Auto-Type only when there was a focus change in the last X seconds. To prevent outdated last focus targets.

Example:

  • user edits entries in KXC or just had it in the foreground a longer time while doing something else
  • user activates Entry Level Auto-Type unwanted
  • when there was no recent focus change (e.g. in the last 5 seconds), it's very likely that the action is not wanted

The time should be settable like for the clipboard. When it's prevented due to timeout, the user will see a short notification that the action was prevented due to timeout.

The result: You can be sure that nothing will happen, unless you explicitly changed the focus very recently to a location were you really want to perform Entry Level Auto-Type. I think this would reduce a lot of accidental cases already, were you already forgot the last focused window or don't intended to use it as a target.

Context

Dear KXC team, I hope you don't mind that I write down a lot of ideas in the last days. I really enjoy KXC and heavily test it atm, resulting in some afterthought.

Even though we will see the confirm dialog in v2.7 that will be a great enhancement, I still thinking about what could be done on the UX side to prevent human error as much as possible. I see it similar to the challenges you have when you build the controls for a plane.

I think also about cases were a user might not want to use the confirm dialog.

貢獻者指南

Only perform Entry Level Auto-Type when the focus was changed in the last X seconds · keepassxreboot/keepassxc#6205 | Good First Issue