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

Keyboard shortcuts on popup not working #359

Open
NicolasWebDev opened this issue Nov 22, 2024 · 9 comments
Open

Keyboard shortcuts on popup not working #359

NicolasWebDev opened this issue Nov 22, 2024 · 9 comments

Comments

@NicolasWebDev
Copy link

NicolasWebDev commented Nov 22, 2024

Hi,

I'm on archlinux, with Chromium 129.0.6668.100-1

After opening the popup, then I can't get the following shortcuts to work:

Shortcut Description Result
Ctrl+C Copy password to clipboard (will clear in 60 seconds) Doesn't do anything
Ctrl+Shift+C Copy username to clipboard (will clear in 60 seconds) Opens the devtools
Ctrl+G Open URL in the current tab Opens the search in page of chromium
Ctrl+Shift+G Open URL in the new tab Opens the same search in page

Do I have to do something special for the shortcuts to work?

Apart from that, I can't find a way to close the popup by using the keyboard.

@maximbaz
Copy link
Member

Hi, I don't think you have to do something special - it sounds like the focus is not in the popup, or at least your browser somehow thinks that the focus is on the page rather than inside the popup, and that's why it sends your hotkeys to the chromium rather than to the popup...

Good point about closing the popup using the keyboard, Escape works in FF but not in Chromium apparently 😅

@NicolasWebDev
Copy link
Author

I've just tried to open the popup manually instead of using the keyboard shortcut to open it, but the behavior stays the same.

Do you say any way for me to debug it further @maximbaz ?

@maximbaz
Copy link
Member

It's a tricky one 🤔 How about arrows "Up" or "Down", do they scroll items inside popup or also scroll page itself? It's a stretch, but maybe you have some browser extension, that preserves focus? In other words, does it reproduce in a fresh profile?

@NicolasWebDev
Copy link
Author

"Up" and "Down" work, the popup opens with the focus on the input field.

I've tried on a blank profile and I have the same problem.

I'm using the browser extension and the native host provided by arch.

browserpass 3.1.0-2
browserpass-chromium 3.8.0-2

@maximbaz
Copy link
Member

What desktop environment / window manager do you use? Also, could you try if you have the same issue in FF ?

@NicolasWebDev
Copy link
Author

NicolasWebDev commented Nov 25, 2024

I'm using awesomewm.

I tried the same in FF and I have the same problem.

Maybe I'm not using the shortcuts right, I don't know.

To clarify my problem, I'm going to detail the steps below:

  1. Open https://miro.com/login/
  2. Focus on the "Email" field
  3. Press "Ctrl + Shift + L"
  4. the browserpass popup appears, with 2 alternative passwords listed
  5. I press "Ctrl + C", nothing happens. "Ctrl + Shift + C" opens the Developer Tools.

Thank you for your help @maximbaz .

@maximbaz
Copy link
Member

Your steps look good, the only possible idea I currently have is that this is somehow related to awesomewm, that it steals the focus from popup 🤔 Do you have a chance to try in sway or something else?

@NicolasWebDev
Copy link
Author

I've tried on openbox with Xephyr, and I have the same problem.

I really don't have the impression that the focus is being stolen because the up/down arrows work and "enter" works as well.

Maybe I should try and install the native host from another source? Or install the browser extension from the Chrome Web Store instead of the arch repos?

@maximbaz
Copy link
Member

Native host only runs when there's a file-based operation (like to decrypt files), it doesn't control visual aspects like shortcuts. I think the only option really is for you (or whoever else is able to reproduce the issue) to enable debugger, and see what's going on around this line below when you press e.g. Ctrl+C

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

No branches or pull requests

2 participants