browserpass / browserpass-extension

Browserpass web extension
ISC License
825 stars 50 forks source link

Make OTP keyboard accessible #322

Open allo- opened 1 year ago

allo- commented 1 year ago

General information

The OTP feature has no (documented) shortcut and it seems one cannot navigate the dialog for copying the current OTP code with the keyboard. It would be good to be able to jump to the code field (or copy button) with the keyboard, possibly have a button "copy code" in the main password list and a quick shortcut "copy OTP code of best matching entry".

Probably the best solution would be to use the default copy function, but not copying/inserting "otpauth://totp/totp-secret?secret=xxx" but the current code. There is little use to ever insert the otpauth:// URL and the URL-type can be used to automatically determine it's a OTP entry.

Anachron commented 1 year ago

I just wanted to switch from passff to browserpass but browserpass does not support otp like passff.

A good idea for me would be to check if the entry has a otpauth field and if so, display a button to copy code/insert it.

Edit:
Forgot to say: I use different password stores for OTP and Passwords, but name the entries equally. Maybe we can merge them in the list if that is not too difficult and display all 3 fields (login, password and code) to copy?

allo- commented 1 year ago

@Anachron You can activate OTP in the advanced settings. This issue is about, that it seems hard to navigate with shortcuts to copy the code.

Using the mouse you can click the right-arrow in the dropdown once you activated OTP support.