Skip to content
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

Global autotype shortcut doesn't use current keyboard layout #2129

Closed
l0f4r0 opened this issue Jul 17, 2018 · 18 comments
Closed

Global autotype shortcut doesn't use current keyboard layout #2129

l0f4r0 opened this issue Jul 17, 2018 · 18 comments

Comments

@l0f4r0
Copy link

l0f4r0 commented Jul 17, 2018

Hi,

I cannot succeed in making autotype feature working on my Mac.
Maybe it's not the best appropriate place to mention it (except if it is a bug indeed) but I didn't get any response both times on the IRC chat so I'm trying on GitHub.
I mention that I have activated autotype for my entries though and I have set up a key binding (Cmd+Ctrl+A) and the titles of my entries correspond with the browser titles so I don’t know where the problem is...
Could someone help me please?

DEBUG INFO:

KeePassXC - Version 2.3.3
Révision : 0a155d8

Bibliothèques :

  • Qt 5.9.3
  • libgcrypt 1.8.2

Système d’exploitation : macOS High Sierra (10.13)
Architecture processeur : x86_64
Noyau : darwin 17.7.0

Extensions activées :

  • Auto-Type
  • Browser Integration
  • Legacy Browser Integration (KeePassHTTP)
  • SSH Agent
  • YubiKey

Thank you in advance.
Best regards,
Jean-Laurent

@droidmonkey
Copy link
Member

Does autotype work when you select an entry and press CTRL+V?

@l0f4r0
Copy link
Author

l0f4r0 commented Jul 18, 2018

Yes but it applies to the active window/tab, no matter its title

@droidmonkey
Copy link
Member

droidmonkey commented Jul 18, 2018

Yah just confirming if its an autotype issue or a key-combo/window matching issue. This is a key-combo/window matching issue. Have you tried a different key combo to rule out interference?

@l0f4r0
Copy link
Author

l0f4r0 commented Jul 19, 2018

Yes, I've associated different key combo to no avail so far...
I don't know what to do now to make it working...

@l0f4r0
Copy link
Author

l0f4r0 commented Jul 23, 2018

Any idea somebody please? :)

@phoerious
Copy link
Member

phoerious commented Jul 24, 2018

@weslly Can you reproduce this?

@l0f4r0
Copy link
Author

l0f4r0 commented Aug 7, 2018

Any news?
Tell me if you need more info.
Thanks in anticipation.

@weslly
Copy link
Contributor

weslly commented Aug 7, 2018

Sorry, I didn't see the mention before.

What's your keyboard layout? Does it work if you set the global shortcut to Cmd+\?

@l0f4r0
Copy link
Author

l0f4r0 commented Aug 8, 2018

According to System Preferences->Keyboard, my layout is : "Français".
You want me to set the global shortcut to Cmd+? I've tried, it does nothing.

@weslly
Copy link
Contributor

weslly commented Aug 8, 2018

I can reproduce it now. The global shortcut doesn't support custom keyboard layouts. I use Colemak instead of QWERTY but never noticed it because my / key stays in the same location as QWERTY.

@l0f4r0 Can you try setting it to CtrlY?

@l0f4r0
Copy link
Author

l0f4r0 commented Aug 8, 2018

It works with ⌘CtrlY! :)
Have you planned to make it work with any key combination and custom layout?

@weslly weslly changed the title Autotype feature not working on MacOS X ? Global autotype shortcut doesn't recognize keyboard layout on macOS Aug 9, 2018
@l0f4r0
Copy link
Author

l0f4r0 commented Nov 30, 2018

So? :)

@droidmonkey
Copy link
Member

This issue is still open therefore we consider it something that needs fixing. Eventually.

@beck-llr
Copy link

Looks like I'm having the same problem on fedora 30. I had to set my Global Auto-Type shortcut to Ctrl+Alt+Q so that when I effectively type Ctrl+Alt+A the auto-type is called.
I'm using KeePassXC 2.4.3 and an azerty lay out.
Cheers to the team.

@droidmonkey droidmonkey changed the title Global autotype shortcut doesn't recognize keyboard layout on macOS Global autotype shortcut doesn't use current keyboard layout Aug 22, 2020
@hifi
Copy link
Member

hifi commented Mar 13, 2021

#6247 should fix this for Linux. Testing is appreciated.

@schwantuschke
Copy link

I have the German keyboard layout on mac. There, the Y and Z keys are reversed compared to the English layout. If I want to use the key combination cmd + alt + Y, I have to record cmd + alt + Z in Global Auto-Type.

@stefan123t
Copy link

@hifi I can reproduce this on linux too, as @beck-llr mentioned earlier.
Please add the platform: Linux label again.

  1. I configure an auto-type entry for any new tab in my Linux notepad application (xed in LinuxMint 21):
    Entry
    Title: Autotype Test in Unsaved Document (Notepad)
    Username: Untitled
    Password: p4ssw0rd
    Auto-Type
    [x] Enable Auto-Type for this entry
    Window Associations
    Window Title: Unsaved Document *

  2. Setting the Auto-Type hotkey
    Tools > Settings > General > Auto-Type
    Global Auto-Type shortcut: Ctrl + Alt + Z
    OK
    Note: It will honor my current keyboard layout when recording the shortcut here.
    I.e. switching between de and en layouts will correctly record Z / Y depending on layout

  3. Activate Auto-Type in an Unsaved Document 1 of the notepad
    Select Ctrl + Alt + Z will not activate Auto-Type selection window
    Using the Ctrl + Alt + Y will activate Auto-Type selection window
    Note: this can be reproduced the other way around too.

I assume that registering the keyboard shortcut with the OS will use the literal Z and not the keycode originally selected on the keyboard.

@l0f4r0, @beck-llr and @schwantuschke you may choose any key that does not change its location between the en keyboard layout used to register the shortcut with the OS and the current keyboard layout (ie. fr, de, fi, etc.) as a workaround.

It is however unfortunate that the french keyboard moves the default Auto-Type sequence character A to the english Q and therefor the registered keycodes will be switched.
@l0f4r0 you should be able to register ⌘ + Ctrl + Q and use ⌘ + Ctrl + A then for auto-type, can you try ?

Kind regards,
Stefan

@droidmonkey
Copy link
Member

We don't actually control when a hotkey is triggered, that is done by the operating system.

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

No branches or pull requests

8 participants