BBS:      TELESC.NET.BR
Assunto:  src/conio/wl_events.c
De:       Deuc¨
Data:     Sat, 25 Apr 2026 14:52:58 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/9b7d45c483b887623791c03c
Modified Files:
	src/conio/wl_events.c
Log Message:
conio/wayland: fix key repeat sending numpad digits for arrows

bug ticket 242: holding arrows under Wayland produced ASCII digits
(Left=4, Right=6, Up=8, Down=2, etc.) once key-repeat began.

send_scancode() stored the remapped BIOS scancode in repeat_key,
but handle_key_repeat() feeds repeat_key back into send_scancode()
as if it were an evdev code.  BIOS scancode 75 (Left) collides with
evdev KEY_KP4, so the xkb path returned '4' on repeat  and the
same coincidence covers all the other reported keys.

Store the original evdev_key in repeat_key consistently, and match
release events against evdev_key.

Co-Authored-By: Claude Opus 4.7 (1M context) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]