-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Modifier keys "sticking" #791
Comments
Further oddities: If you use AHK on the sunshine host like so, everything works as expected. Namely, you can click and drag.
But when used like this, KeyWait (wait for the release of Alt) never triggers. It appears Sunshine never receives the key-up event from moonlight. Thus, the code here will hold down left click forever when alt is pressed.
This seems likely to be related to the inconsistent problem I've been having with modifiers getting stuck. Also, I've been having right click get stuck a lot, too! I'll update the first post with that. Note: the use of |
I have noticed this myself with alt-snap (https://github.com/RamonUnch/AltSnap), the continued version of alt-drag. I came here to report this exact bug. Right now, it is occurring 100% of the time when I drag a window, forcing me to either not use altsnap (which makes Windows unusable to me, honestly) or to enter RDP to kill the process so as to continue to use Moonlight. This does not occur in Geforce Experience sharing and is Sunshine specific. |
Yeah, I'd really like to use a few similar tools that are all currently mangled by this. But even just for basic use: just the other day I was in the middle of typing up something and Shift got stuck 😩 I was forced to swap over to RDP to continue typing, where everything worked as expected. Worth repeating: the stuck key persisted across disconnect/reconnect. I'll try restarting the sunshine service next time to see if that helps. |
I have also reported this problem here: RamonUnch/AltSnap#380 |
Here's a wild shot in the dark... The only time I've seen a key sticking problem was when the signal strength on my bluetooth keyboard to the adaptor wasn't strong enough. Switching to a class 1 (long range) bluetooth adapter solved it for me. |
That's definitely not the issue. I have the issue on my iPad with a physically attached keyboard+mouse (magic keyboard). |
Are you using AHK V1.1 or V2? |
I believe this issue needs to be solved by Microsoft. For example people say if you accidentally toggled sticky keys on with shift 5x all you need to do is go to control panel -> keyboard toggle use sticky keys on and off. |
I do not believe that this is an issue that should be ignored by Sunshine. Although it may originate from a Windows issue (do we know this? I don't know if we do), since this issue is Sunshine specific, and using Moonlight with the official server implementation by Nvidia does work, there is clearly some way to fix this issue. If there is indeed an issue on the Windows side, we may have to wait for years (there's bugs in Windows that are over a decade old!) before it gets any attention, so I would propose finding a solution in the way the Nvidia server software clearly did. |
Definitely don't ignore this issue. I'm not attempting to suggest otherwise. The issue is present with Nvidia gamestream. If I somehow am talking about a different keyboard you can tell me. Perhaps there's a better submodule to use or a better way to implement the feature. There are many ways to potentially solve the issue but the only way to fix it is for someone to open a pull request that somehow effects this issue either positively or negatively and the root problem is discovered then solved. |
You are talking about a different issue entirely, I think. The issue myself and op are talking about works with Gamestream, but does not work with Sunshine. Testing on my iPad less than an hour ago - with Sunshine, altsnap/altdrag does not release alt on unpress, which is the bug in question. With Gamestream, it releases alt on unpress as expected. There is therefore a difference in how inputs are handled between Sunshine and Gamestream that is causing this differentiated behavior. |
You are definitely describing something else entirely. I don't know what you are describing; AltSnap/AltDrag and other such things work fine with the on screen keyboard. Additionally, they work fine over Remote Desktop as well as nvidia gamestream. While I wish you luck solving your issue, let's not clutter discussion of this sunshine specific bug. |
Back on topic: here is an additional context where sunshine's input isn't quite working right: I have my laptop touchpad 4-finger-swipes bound to When doing this gesture over sunshine, the start menu pops up 🤔 |
Although the latest version says lists |
I think it fixed a separate (similar) issue. #975 |
This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days. |
This is still ongoing |
This appears to possibly be fixed on my end at least? |
I have stopped using sunshine for RDP because of this issue, so I cannot currently comment on the state of SHIFT getting stuck while typing and so on. But running through my three tests as documented above shows that the issue has potentially transformed.
To refresh everyone's memory, the following script should effectively rebind alt into left mouse click.
Now, however, the script will not hold down ;This function runs when alt pressed
Alt:: {
Click 'L' 'D' ;This sends mouse left click down
KeyWait 'Alt' ;This waits for Alt to be released
Click 'L' 'U' ;This sends mouse left click up
} After some tinkering, I can see what's going on. ;This function runs when alt pressed
Alt:: {
Msgbox 'Left click down 3s after dismissing this window!'
sleep 3000
Click 'L' 'D' ;This sends mouse left click down
Msgbox 'Left click release 3s after dismissing this window!'
sleep 3000
Click 'L' 'U' ;This sends mouse left click up
} |
🎉🎉🎉 AltSnap: ✔️ 🥳 The incorrect AHK behavior remains, but I would personally consider that super low priority. I don't know if this edge case will ever occur outside of AHK. I will resume using moonlight again and report back if the titular issue crops up (shift/alt/ctrl etc sticking). I have a feeling it won't :) |
Ah, my guess as to why it was fixed on my end (for AltSnap anyway) was that I am on nightlies. It is good to know that the formal release with the fix has reached the general public. |
Not sure if this is related, but I've just noticed that WinCompose on the client seems to be entirely undetected by moonlight or sunshine. This is also not particularly important to fix- just adding another data point to the pile. |
It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks! |
I spoke too soon re: touchpad mapping. |
It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks! |
Bot, exclude yourself from this topic |
@AeliusSaionji ...and now you will. |
It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks! |
This issue was closed because it has been stalled for 10 days with no activity. |
Sometimes, the host PC will think Right Click, Ctrl, Alt, Win, or Shift are held down when they are not.
This happens infrequently, but I use Sunshine every day for remote desktop purposes and bump into this bug several times a week.
I cannot reproduce this on demand.
This might be related to, or is the same problem as another issue I'm seeing, which is 100% reproducible:
https://stefansundin.github.io/altdrag/
Try using AltDrag over sunshine. AltDrag will never see key_release for mouse left and right click!
This buggy behavior is also present in other window management utilities that utilize the mouse in some click n drag fashion.
Thanks and good luck squashing this one!
Host Operating System
Windows 10
Sunshine commit or version
0.18.3
Package
Windows - installer
The text was updated successfully, but these errors were encountered: