[PR #3573] [MERGED] Follow the XKB keymap for Escape and Caps Lock #5063

Closed
opened 2026-11-03 05:09:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3573
Author: @Vadyanik
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: fix/xkb-caps-swapescape


📝 Commits (1)

  • 6255c02 Follow the XKB keymap for Escape and Caps Lock

📊 Changes

1 file changed (+21 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+21 -2)

📄 Description

Fixes #3133.

Key events were matched on the physical key code, which ignores XKB options such as caps:swapescape. follow_keymap now takes Escape and Caps Lock from the keysym the keymap resolved, in both window event handlers. Gameplay keys still use physical positions.

Built with cargo check -p horizon-client; not tested in-game.

🤖 Generated with Claude 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/horizon-rust/horizon/pull/3573 **Author:** [@Vadyanik](https://github.com/Vadyanik) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/xkb-caps-swapescape` --- ### 📝 Commits (1) - [`6255c02`](https://github.com/horizon-rust/horizon/commit/6255c0209690407aef005935b539a9c73a7db79b) Follow the XKB keymap for Escape and Caps Lock ### 📊 Changes **1 file changed** (+21 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+21 -2) </details> ### 📄 Description Fixes #3133. Key events were matched on the physical key code, which ignores XKB options such as `caps:swapescape`. `follow_keymap` now takes Escape and Caps Lock from the keysym the keymap resolved, in both window event handlers. Gameplay keys still use physical positions. Built with `cargo check -p horizon-client`; not tested in-game. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:09:58 +07: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
horizon-rust/horizon#5063
No description provided.