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

Autotype switched window but did not paste either username or password #2349

Closed
Skyb0rn opened this Issue Oct 3, 2018 · 10 comments

Comments

Projects
None yet
4 participants
@Skyb0rn
Copy link

Skyb0rn commented Oct 3, 2018

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

@droidmonkey

This comment has been minimized.

Copy link
Member

droidmonkey commented Oct 3, 2018

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

@Skyb0rn

This comment has been minimized.

Copy link

Skyb0rn commented Oct 4, 2018

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..

@michaellass

This comment has been minimized.

Copy link
Contributor

michaellass commented Oct 5, 2018

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.

@droidmonkey

This comment has been minimized.

Copy link
Member

droidmonkey commented Oct 5, 2018

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

@Skyb0rn

This comment has been minimized.

Copy link

Skyb0rn commented Oct 7, 2018

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

@droidmonkey

This comment has been minimized.

Copy link
Member

droidmonkey commented Oct 7, 2018

@weslly can you assist?

@weslly

This comment has been minimized.

Copy link
Member

weslly commented Oct 7, 2018

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

image

@michaellass

This comment has been minimized.

Copy link
Contributor

michaellass commented Oct 7, 2018

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.

@droidmonkey

This comment has been minimized.

Copy link
Member

droidmonkey commented Oct 7, 2018

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

@Skyb0rn

This comment has been minimized.

Copy link

Skyb0rn commented Oct 9, 2018

This fix worked for me, thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment