-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Leapp blocks CTRL+R keybind (and others?) after SSO window closes for Chrome browser #185
Comments
Thanks, @Plasma, for reporting this. I've changed the wording with "blocks" because "steal" is a bit destructive for an application that manages credentials (this morning, I almost had an hearth attack seeing this). We'll check if, in some way, Leapp is interfering with other chromium apps. |
Thanks @pethron , sorry for the heart I feel like maybe the window still has “focus” or something. |
Hi @pethron I have a feeling this may be due to https://github.com/Noovolari/leapp/blob/master/src/app/services/aws-sso-oidc.service.ts#L165 causing the I can confirm that if the SSO window pops up, if I close it the bug is also there, so I think that is the issue. |
If it helps, I've experienced a similar issue. F5 usage was blocked system wide (Chrome, Visual Studio, etc.,). I killed the app to perform an update and F5 is now working again (although I haven't tried signing into AWS yet). One other note is that ctrl+F5 worked as expected |
Hi! I think a possible solution is to add
In that way, it fires the on blur event for the browserWindow before closing it. I've already tried it and it works. Let me know if I'm missing something. @urz9999 what do you think about that? |
I've checked some examples online which confirm your theory, for example https://www.tabnine.com/code/javascript/functions/electron/BrowserWindow/hide |
Fixed with the last v0.7.4 release |
Hello, I am still seeing the issue on ubuntu 20 with leapp 0.8.0, did we get a regression ? |
HI @drov0, thanks for reporting! I guess that's because you fall into an error condition, where we forgot to call BrowserWindow's hide() method:
To confirm that's the case, we've to double-check it by doing a smoke test. We'll fix it for the next release. |
@ericvilla thanks for the quick response ! Where can I see the logs ? I wonder if the issue is tied to the browser or the actual window (where we can see and configure sessions). If I close the window I get the keybind, but if it's just minimized, the keybind is no tthere. |
You're welcome! You can find logs path here. |
I'm afraid I don't have any logs. I have a bunch of files in ~/.config/Leapp/ but no log.logs |
@ericvilla I think this is still an issue (somehow), tho it may be unrelated: When I minimize Leapp to the tray, I lose ^R/F5 functionality in all my browsers. If I leave the Leapp window open, all works fine. LMK if you want me to submit a new issue or if this is a corner case of this one |
Sure @drmikecrowe! I'll let you know if it is necessary to open a new issue or if it is strictly correlated to this one |
I am reproducing it again on version 0.9.0. When window is minimized in tray, CTRL+R doesn't work. If not, it works. Looks very weird. |
@ericvilla I don't see anything in
Each time when I am trying to press Ctrl + R (and it doesn't work). The Leapp window is minimized to tray, shouldn't be in focus. |
It seems to be a regression yes, although only occurs after SSO sign-on completes (before I then dismiss Leapp), if I minimize Leapp to tray and re-open it and re-minimize it seems fine again. |
@Plasma is there any version older than 0.9.0 which is not affected? Not sure I really need the newest... |
@ericvilla @Plasma --- this is definitely still an issue with 0.10.0 on Linux/Ubuntu (Gnome 20.10):
|
Yes this a regression with the latest UI update, I had trouble setting up a build environment for it so haven’t had a chance to try and make a PR |
Have you tried version 0.12.0? Is this still an issue? We tried to reproduce this bug with the latest version to no avail. |
Just tried
|
We have tried with electron-localshortcut in this commit: c428547 for branch: Can you try to build the solution and verify it on your side? |
@urz9999 confirming that version from this branch works nice - Ctrl+R works again in other windows after minimizing the app. |
Thank you @fancywriter for the feedback! I think we can close it as soon as a new release is available |
Closing this issue since is fixed |
Describe the bug
When AWS SSO dialog appears and after you perform the login, the SSO dialog closes, and from now onwards, pressing CTRL+R keybind in a regular browser like Chrome (at least, and unrelated to Leapp app) does not work.
I haven't tested whether other keybinds are affected. It appears Leapp is maybe "blocking" this keybind from Chrome (and maybe other apps/keybinds?).
To remedy the issue, re-show the Leapp window (via Leapp icon -> Show) and CTRL+R works again.
Leapp Version
Add the version of your Leapp (you can find it under taskbar -> about or Leapp -> about on MacOS X)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Leapp should not be causing the CTRL+R (and maybe other keybinds) from working after the AWS SSO window is dismissed.
Screenshots
n/a
Desktop (please complete the following information):
Additional context
I wonder whether the SSO login window is still "visible" or capturing keybinds even though its dismissed/closed?
The CTRL+R keybind is only prevented when the SSO window closes, up until that point, the keybind works fine.
The text was updated successfully, but these errors were encountered: