(function-key-map): Sync with x-win.el.
This commit is contained in:
parent
267e1dbee4
commit
9b3c108b78
1 changed files with 16 additions and 7 deletions
|
@ -1010,20 +1010,29 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
|
|||
|
||||
;; Map certain keypad keys into ASCII characters
|
||||
;; that people usually expect.
|
||||
(define-key function-key-map [return] [?\C-m])
|
||||
(define-key function-key-map [M-return] [?\M-\C-m])
|
||||
(define-key function-key-map [tab] [?\t])
|
||||
(define-key function-key-map [M-tab] [?\M-\t])
|
||||
(define-key function-key-map [backspace] [?\d])
|
||||
(define-key function-key-map [M-backspace] [?\M-\d])
|
||||
(define-key function-key-map [delete] [?\d])
|
||||
(define-key function-key-map [tab] [?\t])
|
||||
(define-key function-key-map [linefeed] [?\n])
|
||||
(define-key function-key-map [clear] [?\C-l])
|
||||
(define-key function-key-map [return] [?\C-m])
|
||||
(define-key function-key-map [escape] [?\e])
|
||||
(define-key function-key-map [M-backspace] [?\M-\d])
|
||||
(define-key function-key-map [M-delete] [?\M-\d])
|
||||
(define-key function-key-map [M-tab] [?\M-\t])
|
||||
(define-key function-key-map [M-linefeed] [?\M-\n])
|
||||
(define-key function-key-map [M-clear] [?\M-\C-l])
|
||||
(define-key function-key-map [M-return] [?\M-\C-m])
|
||||
(define-key function-key-map [M-escape] [?\M-\e])
|
||||
|
||||
;; These tell read-char how to convert
|
||||
;; these special chars to ASCII.
|
||||
(put 'return 'ascii-character ?\C-m)
|
||||
(put 'tab 'ascii-character ?\t)
|
||||
(put 'backspace 'ascii-character ?\d)
|
||||
(put 'delete 'ascii-character ?\d)
|
||||
(put 'tab 'ascii-character ?\t)
|
||||
(put 'linefeed 'ascii-character ?\n)
|
||||
(put 'clear 'ascii-character ?\C-l)
|
||||
(put 'return 'ascii-character ?\C-m)
|
||||
(put 'escape 'ascii-character ?\e)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue