Minus key does not work on Spice html5 console with Spanish keyboard

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Virtualization (RHEV) 3.3
  • Firefox web browser
  • Spice html5 console
  • spanish keyboard

Issue

When accessing a RHEV VM via spice hml5 client, the minus key does not work, if using a spanish keyboard layout.

Resolution

  • Login to your RHEV-M host via ssh.
  • Edit /usr/share/spice-html5/utils.js around line 210 and after var firefox_scanmap = []; add the following:
firefox_scanmap[173]                  = 0x4a;

This will enable firefox to map the key correctly and be sent to the guest, ensure to use the correct scancode for your keyboard layout, the example above is for Spanish layout.

Root Cause

  • The spice html5 console has support for US keyboards, and the support for other layouts is being investigated in RHBZ 1095255

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments