[PR #1488] [CLOSED] fix pressed key checking #3532

Closed
opened 2026-02-27 00:57:05 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/electerm/electerm/pull/1488
Author: @damosse31
Created: 12/31/2019
Status: Closed

Base: masterHead: fix-pressed-key


📝 Commits (2)

📊 Changes

4 files changed (+12 additions, -11 deletions)

View changed files

📝 src/client/components/session/index.jsx (+1 -1)
📝 src/client/components/sftp/index.jsx (+9 -8)
📝 src/client/components/terminal/index.jsx (+1 -1)
📝 src/client/store/index.js (+1 -1)

📄 Description

Use .key event property instead of .code to avoid differences in keyboard disposition (eg QWERTY vs AZERTY)

For example, in my case the W key on my AZERTY keyboard is inverted with your Z QWERTY keyboard. So with this fix, the real pressed letter is checked.

https://developer.mozilla.org/en/docs/Web/API/KeyboardEvent/code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/electerm/electerm/pull/1488 **Author:** [@damosse31](https://github.com/damosse31) **Created:** 12/31/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix-pressed-key` --- ### 📝 Commits (2) - [`3055ad1`](https://github.com/electerm/electerm/commit/3055ad1a4119c83f6ee37c5cdc820a25c89a390c) fix pressed key checking - [`d695c55`](https://github.com/electerm/electerm/commit/d695c55e9e74875c4a6a7762327fd5fe5797ccf4) add missing key checking ### 📊 Changes **4 files changed** (+12 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `src/client/components/session/index.jsx` (+1 -1) 📝 `src/client/components/sftp/index.jsx` (+9 -8) 📝 `src/client/components/terminal/index.jsx` (+1 -1) 📝 `src/client/store/index.js` (+1 -1) </details> ### 📄 Description Use .key event property instead of .code to avoid differences in keyboard disposition (eg QWERTY vs AZERTY) For example, in my case the W key on my AZERTY keyboard is inverted with your Z QWERTY keyboard. So with this fix, the real pressed letter is checked. https://developer.mozilla.org/en/docs/Web/API/KeyboardEvent/code --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 00:57:05 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#3532
No description provided.