Keepassxc: Autotype switched window but did not paste either username or password

Created on 3 Oct 2018  路  10Comments  路  Source: keepassxreboot/keepassxc

Expected Behavior

Switch window, paste username, {tab}, paste password

Current Behavior

switched window, then nothing

Possible Solution

Steps to Reproduce (for bugs)

I'm using MacOS Mojave, and KeePassXC 2.3.4

macOS Auto-Type

Most helpful comment

I had the same issue with Mojave, but it works after enabling Accessibility access to KeepassXC:

image

All 10 comments

Did you have the username field focused before the window switch?

Yes I did, and it worked before I upgraded to the latest version of XC.. (altho I forgot which version exactly...

basically I upgraded to Mojave, still worked after with the old version of XC, and upgraded to latest version of XC and it stopped working.

I can copy username and password with COMMAND+B and COMMAND+C. but when I use COMMAND+V, it just switches to window but does nothing..

I can confirm the issue, however it was not introduced by a new version of KeePassXC but by rebuilding it on Mojave / XCode 10. The one compiled under High Sierra / XCode 9, it was still functioning properly on Mojave.

That could indicate a new (or changed) API under Mojave.

I see, is there a way I can get a version built on Xcode 9? I did not compile it myself but rather just downloaded the .dmg installer on the website

@weslly can you assist?

I had the same issue with Mojave, but it works after enabling Accessibility access to KeepassXC:

image

Now that's interesting. Let me describe in more detail how this issue showed up for me. I am using a version of KeePassXC compiled using macports.

  1. I updated to Mojave. When using the autotype functionality for the first time, macOS asked me if I want to allow this and opened the settings screen @weslly attached. Afterwards, autotype worked fine.
  2. I recompiled KeePassXC. Afterwards the issue as described here turned up: The active window changed but no typing took place.
  3. Now I removed the entry for KeePassXC in the allowed-to-do-accessibility-stuff list.
  4. On next attempt, macOS asked me again if I wanted to allow this kind of access to KeePassXC. After adding it again to the list, autotype works again.

So it seems like something changed during recompilation such that the permissions did not actually work anymore. Resetting them seems to have fixed it.

It is likely looking at the fingerprint of the application which will very likely change between builds.

This fix worked for me, thank you very much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JosephHatfield picture JosephHatfield  路  3Comments

guihkx picture guihkx  路  3Comments

MisterY picture MisterY  路  3Comments

haroldm picture haroldm  路  3Comments

nfnty picture nfnty  路  3Comments