strongbox-password-safe / Strongbox

A KeePass/Password Safe Client for iOS and OS X
https://strongboxsafe.com
GNU Affero General Public License v3.0
1.34k stars 102 forks source link

Add "Allow Clipboard Handoff" into Haptic Touch Menu #769

Open yur1xpp opened 8 months ago

yur1xpp commented 8 months ago

I frequently use this feature to share sensitive data across devices, but only for certain entries, and I don't want them to stay at always on after I'm done.

Currently, if you set a quick launch database, as well as to open the database in "searching mode", I'll have to (after launching the app from cold):

  1. First close/cancel the searching
  2. Close the database
  3. Tap the settings button
  4. Navigate to Clipboard
  5. Turn on Allow Clipboard Handoff
  6. Open the database again
  7. Start search again
  8. Copy

As you can see, that's quite literally so many steps to go through to achieve this. If the function were to integrated into the haptic touch menu (long press on the icon in homescreen), all the steps will be consolidated into only one.

My suggestion is similar to the auto clear clipboard function, where if you were to activate it via the haptic touch, it'll revert back to off after 30 seconds (configurable), and this will override the manual turning on/off of "Allow Clipboard Handoff" within that time frame.

One way to implement this is to record the timestamp it's activated via haptic touch, and any subsequent copy will first verify whether the delta of the action timestamp is less than the configured time duration. If it's, proceed to copy the content into "handoff" clipboard, else check against the manual "Allow Clipboard Handoff" settings.

Hopefully this will be considered, thanks!

Scryb commented 8 months ago

Another option could perhaps be a separate copy command for "Copy with Handoff"? Could have its own shortcut on Mac and be accessible from context/haptic touch menu on both iOS and MacOS. So if you have the global setting turned off you can override it easily one item at a time.