aboutsummaryrefslogtreecommitdiff
path: root/vterm.el
diff options
context:
space:
mode:
authorjixiuf <jixiuf@qq.com>2022-08-22 12:17:49 +0800
committerjixiuf <jixiuf@qq.com>2022-08-22 12:19:53 +0800
commitf65916b316aa17431221aa3885c0d67f2d1fc30d (patch)
tree907cef83332839a81b46fc2ce2bdeaef1c06aa9d /vterm.el
parent52ae56f0b2d40403938a226e4df95a0f433306cc (diff)
fix #622
Diffstat (limited to 'vterm.el')
-rw-r--r--vterm.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/vterm.el b/vterm.el
index dac4c81..dffb3fb 100644
--- a/vterm.el
+++ b/vterm.el
@@ -1207,10 +1207,12 @@ looks like: ((\"m\" :shift ))"
(when (listp ev-keys)
(dolist (k ev-keys)
(when-let ((key (key-description (vector k))))
+ (when (and (not (symbolp event)) shift (not meta) (not ctrl))
+ (setq key (upcase key)))
(setq keys (append keys (list (list key shift meta ctrl))))))))
(when-let ((key (key-description (vector raw-key))))
- ;; (when (and (not (symbolp event)) shift (not meta) (not ctrl))
- ;; (setq key (upcase key))) ; is this needed?
+ (when (and (not (symbolp event)) shift (not meta) (not ctrl))
+ (setq key (upcase key)))
(setq keys (list (list key shift meta ctrl)))))
keys))