You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typing <, >, and | doesn't input the correct characters to a target machine with a German keyboard layout. This has been tested using a Mac as a client machine, with the German - Standard keyboard layout, on Chrome and Safari. Firefox does not have this issue.
What's the behavior that you expect?
We expect that hitting the < key (directly to the right of left-shift) produces a < on the target machine. Additionally, we expect < and shift to produce a >, and we expect < and right-hand Option (on Mac) to produce |.
What's happening instead?
On Chrome and Safari, typing < instead produces ^ , < and shift produces °, and < and right-hand Option produces ′.
The underlying issue seems to be the way each browser interprets the keycode for the < key.
On Chrome and Safari, < is interpreted as keycode 188, > as keycode 190, and | as keycode 220. These appear to be the keycodes used for an English layout, but they're incorrect for the German layout.
What are the steps to reproduce this behavior?
Set your Mac's keyboard layout to "German - Standard"
Open TinyPilot in Chrome or Safari
Open a text editor on the target machine (with a German keyboard layout)
Hit the < key
See ^
Screenshots
The text was updated successfully, but these errors were encountered:
We should be able to work around this on the server. We should be able to detect the browser and client language from the HTTP request, and then the TinyPilot server can remap the keys when we recognize that it's German keyboard layout + buggy browser.
Description
Typing
<
,>
, and|
doesn't input the correct characters to a target machine with a German keyboard layout. This has been tested using a Mac as a client machine, with the German - Standard keyboard layout, on Chrome and Safari. Firefox does not have this issue.What's the behavior that you expect?
We expect that hitting the
<
key (directly to the right of left-shift) produces a<
on the target machine. Additionally, we expect<
andshift
to produce a>
, and we expect<
and right-hand Option (on Mac) to produce|
.What's happening instead?
On Chrome and Safari, typing
<
instead produces^
,<
andshift
produces°
, and<
and right-hand Option produces′
.The underlying issue seems to be the way each browser interprets the keycode for the
<
key.Firefox correctly identifies the keycode as 60:
On Chrome and Safari,
<
is interpreted as keycode 188,>
as keycode 190, and|
as keycode 220. These appear to be the keycodes used for an English layout, but they're incorrect for the German layout.What are the steps to reproduce this behavior?
<
key^
Screenshots
The text was updated successfully, but these errors were encountered: