-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add {COPY:field} to Auto-Type tokens to copy named field to clipboard #2215
Comments
I think a better solution, since OTP are getting very popular, is to create an AutoType global keyboard shortcut specifically for the TOTP typing. |
@droidmonkey - that would be good to have. It was brought up in #1892. I cannot find the issue, but I came across one yesterday where people strongly felt that storing the OTP secret in the same database as username and password defeats the purpose. Using 2 database on the phone version of the app would be a nightmare. Moreover, someone even thought of the KeepassXC DB as just a backup store for the secret. |
The fact is that you need to minimize KeePassXC in order to send keystrokes to the target application, after that you need to re-invoke the KeePassXC window. This has some issue if you disable the auto-enter autotype shortcut (sending automatically The best thing is adding a shortcut to minimize/maximize the KeePassXC window. Expected Behaviour:
|
Okay. So it is a limitation. Are there reasons that makes a double click copy of OTP a bad idea? How about an option to put the TOTP (if it exists) into the clipboard on clicking auto-type? |
I actually like your proposal and we should make an autotype sequence keyword for it. Something like
|
How about {COPY:field} |
I like the |
Looks like this has turned into a new "Enhancement" request. Should a new issue be created? @TheZ3ro @droidmonkey - This is too far ahead but, should you implement |
We would use the configured clipboard clearing time. It would be incumbent on the user to configure their autotype correctly to incorporate delays and such. We can keep this same issue to track the enhancement, I changed the title. |
The {COPY:field} is such a great idea ! |
That's the functionality I want (I don't care if it's TO-CLIP or COPY or whatever). |
We do support the {TOTP} placeholder |
Yes, but I want it into the clipboard because often the TOTP has to be put into next web page, some variable number of seconds later. |
You can also add {DELAY 2000} to add a 2 second delay. Just some workarounds while this is open. |
I decided not to implement this feature. The revamped Auto-Type select dialog now includes the ability Auto-Type or copy to clipboard the username, password, or totp of an entry. We do not encourage the use of the clipboard and embedding that into Auto-Type defeats the purpose of Auto-Type. |
Can be done by using the KeePassOTP plugin and this keystroke sequence: {CLIPBOARD-SET:/{KPOTP}/} |
There is no way to use that plugin in KeePassXC, unless I am greatly mistaken. If I try to use that keystroke sequence, I get "syntax error", and there is no way to get around that error and save the entry anyway. I'm using KeePassXC 2.6.4 |
What is the "Auto-Type select dialog" ? I don't see that in my copy of KeePassXC. How do I copy TOTP to clipboard ? |
This is a future feature #5864 |
@droidmonkey Some sites do not recognize TOTP typed by KeePassXC. For example, the code gets inserted only in the first box at hosting.de login screen. Normally, when typing the TOTP, some JS automatically selects the next input box after each key press. That does not happen with auto-type. I beg you, please reconsider implementing a copy function. |
It is already implemented.... you have several options:
|
Thank you for the quick response.
A copy function for auto-type would be so much more convenient, in my opinion. |
That is not the purpose of Auto-Type. It's purpose is to avoid using the clipboard. As a side benefit you can automate some actions through the keyboard if you wish to do so. You can use a higher value than 500 in the delay, that was just an example. |
A higher value makes no difference. I can watch how the TOTP numbers get deleted after being inserted one by one. A workaround could be to use TAB between the TOTP numbers. Is that possible somehow? |
That is not possible. Since this website appears to be broken there is nothing we can do to fix this from an Auto-Type keyboard perspective. |
You could add an option to automatically copy the TOTP, as most password managers offer. 🙂 |
Expected Behavior
KeepassXC should (optionally) not minimize after auto type (discussed at https://sourceforge.net/p/keepass/discussion/329221/thread/fd0e9e5a/) The people at that time (2013) thought that there was no further need for Keepass after auto-type.
Current Behavior
KeepassXC minimizes after autotype
Possible Solution
Have a setting under Tools > settings > General > Basic
Context
I often have to copy the TOPT after auto type. I would also love to be able to double click and copy TOTP like the user name and passwords, but can live with the rightclick > Time-based one time passwords > copy OTP or Show OTP, but the window minimizing all the time does gets irritating. Different users have different work flows and at times, I may have to have 3 to 4 logins within 10min. So, an option to prevent or enable minimize after auto-type may be useful for some users (like me).
Debug Info
KeePassXC - Version 2.3.3
Revision: 0a155d8
Libraries:
Operating system: Windows 10 (10.0)
CPU architecture: x86_64
Kernel: winnt 10.0.17134
Enabled extensions:
The text was updated successfully, but these errors were encountered: