-
Notifications
You must be signed in to change notification settings - Fork 986
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
[BUG] AltGr still not working #1715
Comments
Could you try using our client instead of RealVNC's? It might be a client issue. In addition, please see if you could try the latest TigerVNC on the server. There could be bug fixes that affect your setup in the latest versions. |
With your client it works for the AltGr problem, not for the copy/paste problem. |
We try to be compatible with all VNC clients. But we might not be able to compensate for bugs in them. And they might not support all the features we have. E.g. RealVNC does not support raw keyboard. Could you please add the argument I also missed which of our servers you were using. X0tigervnc unfortuantely doesn't support clipboard yet. See #529. |
I wouldn't call it a bug if a client doesn't support your features. More like an incompatibility. The question is what does the client send and what does the server make of it. Here is what I send with AltGr: Log:
and here how Ctrl Alt (left) looks like:
|
Unfortunately, those logs show that RealVNC's client is not sending AltGr, but rather Ctrl+Alt. This is a common issue for Windows, but TigerVNC has no idea if this is a "real" Ctrl and Alt being pressed or not. So it has to trust the client. Assuming Ctrl+Alt means AltGr would likely break other clients. The reason you get the warning from x0vncserver is that the loaded layout doesn't have a right Alt, since it has the AltGr key in that spot. Xvnc has some magic that tries to make things work even if the client and server layout doesn't match, but that magic has not yet been ported to x0vncserver. Please follow #528 for that. |
I don't think that is correct. That's why I send you the (Left) Ctrl+Alt keys too. The first example is AltGr. |
But users are fully free to press the right Alt. We can't assume that it is really AltGr, as that is only the case for some layouts. |
So you go away now from saying "The reason you get the warning from x0vncserver is that the loaded layout doesn't have a right Alt, since it has the AltGr key in that spot." to "users are fully free to press the right Alt". With all due respect, but your arguments are getting a bit squishy. It is not about right Alt. It is about the combination 0xffe3 (Control_L) + 0xffea (Alt_R) |
But how would we tell the difference between a client with a German layout pressing AltGr, and a client with an American layout pressing Control_L and Alt_R? We have no information about the client's layout, we only see the keys pressed. |
I don't know. I am no expert. Maybe if a locale is set in client settings you can evaluate that. RealVNC has such a parameter which can be set. But I don't know if that is of any value. You could also evaluate locale settings on the host system (Linux) and act accordingly. So if it is set to de_DE assume AltGr is pressed. For Windows it is basically the same. |
I'm afraid the client doesn't share any such details with the server. VNC is very much designed around following the client layout. We might be able to add some hacks and guess when the client isn't truthful with us, but that would be very fragile and likely confusing in many cases. What we've done to resolve this is adding "raw keyboard" mode, but it requires a compatible client, or trying to figure out how to get what the client is requesting even with a layout mismatch, but that feature is not in x0vncserver yet (#528). I'm afraid your only realistic option presently is switching clients, or filing a bug with RealVNC and see if they can fix their client. No one is currently working on #528, and I'm not even sure if it will fully resolve this issue, as Ctrl+Alt is not the same thing as AltGr on Linux. |
We also have the |
Ok I give up. I still don't see where RealVNC produces a bug and x0vncserver does not by not recognizing ALT_R. And btw I use RealVNC client on several Raspi/Debian systems with tigervncserver and there is no such problem. |
update: |
As in many other threads over the last 10 years I also came across this problem now.
Server Side LMDE6, Xtigervnc v1.12.0, locale de_DE.UTF-8:
X0tigervnc -display :0 -RawKeyboard -rfbport 5900 -passwordfile $pwfile -HostsFile $myhosts
Client Side Win11, RealVNC VNC Viewer, German Keyboard:
Every AltGr-Charater combination not showing
Response from X0tigervnc console at pressing AltGr:
XDesktop: Could not map key event to X11 key code
As sometimes suggested I tried -RawKeyboard as you can see but it makes no difference.
In VNC Viewer SendKeyEvents and SendspecialKeys is set to "true"
Switching to an english keyboard layout on the client side also has no effect.
Special characters like @ or [ ] or | which are invoked with AltGr on a german layout still don't show up.
Would be grate if this could be solved somehow.
Another "bug" is that the copy/paste fuction also doesn't work.
The text was updated successfully, but these errors were encountered: