Skip to content

Commit

Permalink
Add propper handling for last pressed keypad key
Browse files Browse the repository at this point in the history
This sets the last-command-event properly with a correctly formated
key.
  • Loading branch information
Haxxflaxx committed Dec 20, 2024
1 parent 353d17d commit bf835a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meow-keypad.el
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,12 @@ try replacing the last modifier and try again."
(unless (or meow--use-literal
meow--use-meta
meow--use-both)
(setq last-command-event (thread-first
(car meow--keypad-keys)
(meow--keypad-format-key-1)
(kbd)
(aref 0)))
(let* ((key-str (meow--keypad-format-keys nil))
(last-command-event (string-to-char key-str))
(cmd (meow--keypad-lookup-key (kbd key-str))))
(cond
((keymapp cmd)
Expand Down

0 comments on commit bf835a0

Please sign in to comment.