Fix input-decode-map binds in emacsclient frames

This commit is contained in:
Henrik Lissner 2018-06-29 22:21:03 +02:00
parent 5931d89d9d
commit 9b2100dfe7
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -748,12 +748,13 @@
;; This section is dedicated to "fixing" certain keys so that they behave ;; This section is dedicated to "fixing" certain keys so that they behave
;; sensibly (and consistently with similar contexts). ;; sensibly (and consistently with similar contexts).
(if window-system ;; Fix MacOS shift+tab
(define-key! input-decode-map (when IS-MAC
[S-iso-lefttab] [backtab] ;; Fix MacOS shift+tab (define-key input-decode-map [S-iso-lefttab] [backtab]))
(kbd "ESC") [escape])
;; Fix TAB in terminal (defun +default|setup-input-decode-map ()
(define-key input-decode-map (kbd "TAB") [tab])) (define-key input-decode-map (kbd "TAB") [tab]))
(add-hook 'tty-setup-hook #'+default|setup-input-decode-map)
(after! tabulated-list (after! tabulated-list
(define-key tabulated-list-mode-map "q" #'quit-window)) (define-key tabulated-list-mode-map "q" #'quit-window))