Skip to content

Commit

Permalink
Fix keypad popup, respect the binding priority
Browse files Browse the repository at this point in the history
  • Loading branch information
DogLooksGood committed May 12, 2023
1 parent 07ccf11 commit f6a1b48
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions meow-keypad.el
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,18 @@
(lambda (key def)
(unless (member 'control (event-modifiers key))
(unless (member key ignores)
(define-key km (vector (meow--get-event-key key)) (funcall meow-keypad-get-title-function def)))))
(let ((k (vector (meow--get-event-key key))))
(unless (lookup-key km k)
(define-key km (vector (meow--get-event-key key)) (funcall meow-keypad-get-title-function def)))))))
keymap)
(map-keymap
(lambda (key def)
(when (member 'control (event-modifiers key))
(unless (member (meow--event-key key) ignores)
(when def
(define-key km (vector (meow--get-event-key key)) (funcall meow-keypad-get-title-function def))))))
(let ((k (vector (meow--get-event-key key))))
(unless (lookup-key km k)
(define-key km k (funcall meow-keypad-get-title-function def))))))))
keymap)
km)))))))

Expand Down

0 comments on commit f6a1b48

Please sign in to comment.