<, >, and | are mapped incorrectly on Chrome and Safari (German keyboard layout)
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 領域
- frontend
調査の方向性
Start by reproducing the German - Standard keyboard behavior on macOS in Chrome and Safari, comparing their key events with Firefox. Trace the existing browser keyboard-input handling, then verify that <, >, and | reach the target machine correctly in both affected browsers.
索引モデルが issue の本文から書いたものです。
説明
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 < 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.
Firefox correctly identifies the keycode as 60:
{
"key": "<",
"keyCode": 60,
"which": 60,
"code": "IntlBackslash",
"location": 0,
"altKey": false,
"ctrlKey": false,
"metaKey": false,
"shiftKey": false,
"repeat": false
}
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
- 主要言語
- Python
- スター
- 3.5k
- フォーク
- 292
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tiny-pilot/tinypilot のほかの issue
-
bug medium
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
tiny-pilot/tinypilot#1419 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
tiny-pilot/tinypilot#1929 · コメント 3 件 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
tiny-pilot/tinypilot#1899 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
tiny-pilot/tinypilot#1896 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
tiny-pilot/tinypilot#1882 ·
tiny-pilot/tinypilot の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
PedestrianDynamics/pyFDS-Evac#343 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
theskumar/python-dotenv#708 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信
-
Docs Timedelta
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pandas-dev/pandas#69919 ·
メンテナーはふだん 1 日以内に返信
-
API documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
zephyrproject-rtos/west#1009 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信