unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* numpad doesnt seem to send kp events in wayland
@ 2024-10-21 23:17 joakim
  2024-10-22 21:55 ` Arsen Arsenović
  0 siblings, 1 reply; 9+ messages in thread
From: joakim @ 2024-10-21 23:17 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I used to use a numpad to bind to do things in emacs.

This used to work really well on the i3wm window manager and a gtk emacs
build.

Then I bought a nice new framework laptop which has a hidpi screen, so I
switched to using the sway wm, and emacs-pgtk.

Now the numpad no longer sends keypad events in a way that emacs
recognizes, instead just plain numbers are received.

for some reason i3 wont work anymore so I dont have anything to compare
with.

Is this just me or is this a well known problem?

below is an example of the code I use, but normally I just test with c-h
k to see which key emacs receives.

I also tried xev, and there it seems I get kp events, at least under
xwayland I guess.

(define-key cider-mode-map (kbd "<kp-enter>") 'sylt-stop)
(define-key cider-mode-map (kbd "<kp-separator>") 'sylt-play-metro)

(defmacro sylt-song-event-map-key (key num)
  `(define-key cider-mode-map (kbd ,key)
               (lambda  () (interactive)   (cider-nrepl-sync-request:eval  ,(concat "(sylt.core/song-event \"" num "\")")))))



(sylt-song-event-map-key "<kp-0>" "init")
(sylt-song-event-map-key "<kp-1>" "1")


-- 
Joakim Verona
joakim@verona.se



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-10-29 21:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-21 23:17 numpad doesnt seem to send kp events in wayland joakim
2024-10-22 21:55 ` Arsen Arsenović
2024-10-23  7:11   ` joakim
2024-10-23 13:06     ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-10-24 18:17       ` joakim
2024-10-24 20:05         ` Stefan Monnier
2024-10-25 18:21           ` joakim
2024-10-25 20:18             ` Stefan Monnier
2024-10-29 21:13               ` joakim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).