Skip to content

Commit

Permalink
Fix the warning on (kbd "ESC")
Browse files Browse the repository at this point in the history
  • Loading branch information
DogLooksGood committed Dec 1, 2024
1 parent 024f8e9 commit 5c18500
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion meow-keymap.el
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
(define-key map (kbd "DEL") 'meow-keypad-undo)
(define-key map (kbd "<backspace>") 'meow-keypad-undo)
(define-key map (kbd "<escape>") 'meow-keypad-quit)
(define-key map "" 'meow-keypad-quit)
(define-key map [remap keyboard-quit] 'meow-keypad-quit)
map)
"Keymap for Meow keypad state.")
Expand Down
4 changes: 3 additions & 1 deletion meow-keypad.el
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,9 @@ try replacing the last modifier and try again."

(defun meow--keypad-handle-input-with-keymap (input-event)
"Handle INPUT-EVENT with `meow-keypad-state-keymap'."
(let* ((k (kbd (single-key-description input-event)))
(let* ((k (if (= 27 input-event)
[escape]
(kbd (single-key-description input-event))))
(cmd (lookup-key meow-keypad-state-keymap k)))
(if cmd
(call-interactively cmd)
Expand Down

0 comments on commit 5c18500

Please sign in to comment.