keyboard - Emacs escape key -


currently, if press c-h c, trice press esc key on keyboard result

esc esc esc (translated <escape> <escape> <escape>) runs command keyboard-escape-quit 

what difference between esc , <escape> , how can use difference make more keybindings?

found solution in emacs mailing list archive:

the escape key linked escape char, 2 different. under tty, emacs receives exact same byte-sequence terminal if type escape key or if type c-[ (both send escape char).

under gui, on other hand, emacs can distinguish two, under gui, escape key doesn't send ?\e (aka esc kbd) escape (aka <escape> kbd) turned ?\e via function-key-map (i.e. if there's no corresponding binding key sequence escape).

same thing happens tab (i.e. tab (aka c-i) vs tab) , return (i.e. ret (aka c-m) vs return).


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -