View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000004 | Kohi Engine | Enhancements | public | 2026-10-19 17:37 | 2026-11-11 16:37 |
| Reporter | travisvroman | Assigned To | travisvroman | ||
| Priority | low | Severity | feature | Reproducibility | N/A |
| Status | closed | Resolution | no change required | ||
| Platform | Linux Desktop | OS | GNU/Linux | OS Version | N/A |
| Summary | 0000004: Linux Platform keyboard input fixes | ||||
| Description | Ported over from GitHub issues: https://github.com/travisvroman/kohi/issues/53 Per a comment on YT from April E, can eliminate the need to globally turn off key repeats by doing the following:
Also from April E: "I found the reason for the & ~0x80 being done on X11 events. Every event has an 8bit code. And the most significant bit in the code is set if the event was generated from a SendEvent request (like from a window manager vs the X server itself.) & ~0x80 = 0111 1111 so by anding it to the event you are clearing that top bit ensuring that you will always match your event code regardless of the event's origin. Arguably just anding by 0x7F would be better. Anyway...that's the reason behind it. So in your cases where you check for the pressed state you should do the same. You also want to free the replies you get when retrieving the WM_PROTOCOLS & WM_DELETE_WINDOW atoms." Finally, add a static lookup table of key codes->keys and eliminate switch in translate function. | ||||
| Tags | enhancement, Linux | ||||
| Revision | |||||
|
|
All of this was fixed at some point in the past. The only thing that wasn't done was the static lookup of table codes, because IMO a switch is cleaner than pulling in an entire lookup table every time. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-10-19 17:37 | travisvroman | New Issue | |
| 2026-10-19 17:37 | travisvroman | Status | new => assigned |
| 2026-10-19 17:37 | travisvroman | Assigned To | => travisvroman |
| 2026-10-19 17:37 | travisvroman | Tag Attached: enhancement | |
| 2026-10-19 17:37 | travisvroman | Tag Attached: Linux | |
| 2026-11-11 16:37 | travisvroman | Status | assigned => closed |
| 2026-11-11 16:37 | travisvroman | Resolution | open => no change required |
| 2026-11-11 16:37 | travisvroman | Note Added: 0000013 |