summaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/kitty-keyboard-protocol.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/kitty-keyboard-protocol.el b/lisp/kitty-keyboard-protocol.el
index 77de473..120be50 100644
--- a/lisp/kitty-keyboard-protocol.el
+++ b/lisp/kitty-keyboard-protocol.el
@@ -287,7 +287,7 @@ would swap meta and super.")
(eql e ?\;))
(< count 25))
(setq count (1+ count)) ; safety
- (setq e (read-char))
+ (setq e (funcall kitty-kbp-event-read-function))
(setq complete-string (concat complete-string (string e))))
;; (send-string-to-terminal complete-string)
(kitty-kbp-handle-non-printable complete-string)))
@@ -300,7 +300,7 @@ would swap meta and super.")
(current-num 0)
(e))
(while (not suffix)
- (setq e (read-event))
+ (setq e (funcall kitty-kbp-event-read-function))
(if (<= ?0 e ?9)
(setq current-num (+ (* current-num 10) (- e ?0)))
(if (eql e ?\;)