Fix #3090: distinguish C-i from TAB
This commit is contained in:
parent
24164f4869
commit
63ab88105f
1 changed files with 8 additions and 0 deletions
|
@ -30,6 +30,14 @@ and Emacs states, and for non-evil users.")
|
|||
(setq mac-command-modifier 'super
|
||||
mac-option-modifier 'meta))
|
||||
|
||||
;; HACK Emacs cannot distinguish C-i from TAB, which is disturbing. Instead,
|
||||
;; let's at least make GUI Emacs aware of this distinction:
|
||||
(define-key key-translation-map [?\C-i]
|
||||
(λ! (if (and (not (cl-position 'tab (this-single-command-raw-keys)))
|
||||
(not (cl-position 'kp-tab (this-single-command-raw-keys)))
|
||||
(display-graphic-p))
|
||||
[C-i] [?\C-i])))
|
||||
|
||||
|
||||
;;
|
||||
;;; Universal, non-nuclear escape
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue