xpra icon
Bug tracker and wiki

Opened 2 weeks ago

Last modified 13 days ago

#1902 assigned defect

can not type "less than" character (<) in HTML5 client

Reported by: Matteo Ipri Owned by: Antoine Martin
Priority: major Milestone: 2.4
Component: html5 Version: 2.3.x
Keywords: input keyboard Cc:

Description (last modified by Antoine Martin)

I found this issue when running xpra in a Docker container with Ubuntu 17.10 artful and using the HTML5 client. This bug is present in both version of xpra and only in HTML5 client.

If I try to type the "less than" character (<) pressing "shift+," when using the HTML5 client, I get the "greater than" character (>).
This happens on both stable and beta HTML5 clients, but not with the desktop client. My keyboard has the US layout and has 104 keys. In the logs I see that the "us" layout is chosen by xpra and that the ctrl key press is recognized by xpra.
Other keys with issues are the 4 in the top right corner of the keyboard (top right corner of the numpad): /, *, - and +. These four are mapped to the similar keys in the main part of the keyboard, thus when I press "*" I get "8" and I have to press "shift+*" to get the "*".

I wrote a couple of Dockerfiles to test the latest stable (xpra X11 version 2.3.2-r19729 64-bit as of this writing) and the latest beta version (xpra X11 version 2.4-r19803 64-bit as of this writing) and I found some bugs when comparing the HTML5 client to the Xpra desktop client I use on my Arch Linux running PC.

The Docker images are based on Ubuntu 17.10 artful and I attach the Dockerfiles so that my experiments can be reproduced.

To build the images, I run the following commands:

sudo docker build -t xpra -f path/to/xpra/Dockerfile path/to/xpra/ 
sudo docker build -t xpra:beta -f path/to/xpra/Dockerfile-beta path/to/xpra/

To run the containers, I enter the following:

sudo docker run --interactive --tty --rm -p 8080:8080 xpra
sudo docker run --interactive --tty --rm -p 8080:8080 xpra:beta

Attachments (6)

Dockerfile (1.6 KB) - added by Matteo Ipri 2 weeks ago.
Dockerfile-beta (1.7 KB) - added by Matteo Ipri 2 weeks ago.
xpra-info.txt (98.5 KB) - added by Matteo Ipri 2 weeks ago.
xpra-stable-server-log.txt (4.8 KB) - added by Matteo Ipri 2 weeks ago.
xpra-stable-info.txt (97.1 KB) - added by Matteo Ipri 2 weeks ago.
xpra-stable-xev.png (363.0 KB) - added by Matteo Ipri 2 weeks ago.
screenshot of xev output when trying to type greater and lesser than

Download all attachments as: .zip

Change History (9)

Changed 2 weeks ago by Matteo Ipri

Attachment: Dockerfile added

Changed 2 weeks ago by Matteo Ipri

Attachment: Dockerfile-beta added

comment:1 Changed 2 weeks ago by Antoine Martin

Description: modified (diff)
Milestone: 2.4
Owner: changed from Antoine Martin to Matteo Ipri

Can you please attach the server log and an xpra info snapshot of when the html5 client is connected? (more general keyboard bug reporting guidelines here: wiki/Keyboard)

Changed 2 weeks ago by Matteo Ipri

Attachment: xpra-info.txt added

Changed 2 weeks ago by Matteo Ipri

Attachment: xpra-stable-server-log.txt added

Changed 2 weeks ago by Matteo Ipri

Attachment: xpra-stable-info.txt added

Changed 2 weeks ago by Matteo Ipri

Attachment: xpra-stable-xev.png added

screenshot of xev output when trying to type greater and lesser than

comment:2 Changed 2 weeks ago by Matteo Ipri

I attached some dumps.
I am not able to delete the file "xpra-info.txt" that was dumped in a previous run, while all other file are from the same run.
Here are the two smaller dumps:

$ setxkbmap -print
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us+inet(evdev)"	};
	xkb_geometry  { include "pc(pc105)"	};
};
$ setxkbmap -query
rules:      evdev
model:      pc105
layout:     us

comment:3 Changed 13 days ago by Antoine Martin

Owner: changed from Matteo Ipri to Antoine Martin
Status: newassigned

See also #1898

Note: See TracTickets for help on using tickets.