Bug #4304

AltGr Key not working in vnc-console with KVM and german keyboard

Added by Peter Loeffler almost 4 years ago. Updated over 2 years ago.

Status:ClosedStart date:01/21/2016
Priority:HighDue date:
Assignee:Juan Jose Montiel Cano% Done:

0%

Category:Sunstone
Target version:Release 5.4
Resolution:fixed Pull request:
Affected Versions:Development, OpenNebula 4.14, OpenNebula 5.0

Description

Hi,

the key AltGr (right alt key) is not working in the vnc-console.
This is very bad for users with a german keymap because without it no @, |, \, {, }, ... is working.
Googling this problem with novnc and kvm you can find a lot of notes but none of them are helping.
From the novnc-side this issue should be fixed since 0.5.1. Maybe it's a libvirt/qemu problem.

Regards,
Peter

History

#1 Updated by Steffen Limmer over 3 years ago

Hello,

i have the same problem (using iceweasel 38.6.1). I tried to debug the noVNC code and found the following lines in the keyboard.js from noVNC:

// Firefox sends keypress even when no char is generated.
// so, if keypress keysym is the same as we'd have guessed from keydown,
// the modifier didn't have any effect, and should not be escaped
if (queue[0].escape && (!cur.keysym || cur.keysym.keysym !== queue[0].keysym.keysym)) {
cur.escape = queue[0].escape;
}

When i comment this out and run Sunstone in development mode, AltGr is working for me.
Additionally, there is no problem with AltGr when i connect with vncviewer. So it seems to be an issue with noVNC?
Hope, this information will help to fix the bug.

Kind Regards,
Steffen

#2 Updated by Daniel Molina over 3 years ago

  • Status changed from Pending to New

Hi Steffen,

Thank you for the detailed solution. Since this is not part of the Sunstone code, would you mind to report this issue in the noVNC Github?
https://github.com/kanaka/noVNC

#3 Updated by Steffen Limmer over 3 years ago

Hello Daniel,

i opened an issue (https://github.com/kanaka/noVNC/issues/595). But there is already a quite similar issue, that was closed (https://github.com/kanaka/noVNC/issues/429).

Regards,
Steffen

#4 Updated by Yannick MOLINET over 3 years ago

same with french keyboard.

#5 Updated by Carlos Martín about 3 years ago

  • Category set to Sunstone
  • Priority changed from Normal to High
  • Target version set to Release 5.4
  • Affected Versions Development, OpenNebula 5.0 added

To consider:

- novnc can be updated, but the new version may require some changes in our code (see: https://github.com/kanaka/noVNC/releases)
- our current version (0.5.1) can be replaced with the fork mentioned here: https://github.com/kanaka/noVNC/issues/21

In both cases it looks like removing the graphics/keymap attribute from libvirt's xml is required to make it work.

#6 Updated by Tino Vázquez over 2 years ago

  • Assignee set to Juan Jose Montiel Cano

#7 Updated by Javi Fontan over 2 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

The patch suggested by Steffen Limmer works and will be applied in newer releases.

Also available in: Atom PDF