From 60ec7b7ed9b42fac4b58bdfc8fce6100b66668cb Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Sun, 17 Apr 2005 01:37:38 +0000 Subject: [PATCH] (struct keys): Add support for shifted keys. --- src/ChangeLog | 4 ++++ src/term.c | 21 ++++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index ffcfdebcab1..3483a2c5905 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-04-16 Dan Nicolaescu + + * term.c (struct keys): Add support for shifted keys. + 2005-04-16 Richard M. Stallman * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case. diff --git a/src/term.c b/src/term.c index 23da2ac8704..1e1a8674b0c 100644 --- a/src/term.c +++ b/src/term.c @@ -1451,7 +1451,26 @@ static struct fkey_table keys[] = {"k6", "f6"}, {"k7", "f7"}, {"k8", "f8"}, - {"k9", "f9"} + {"k9", "f9"}, + + {"&0", "S-cancel"}, /*shifted cancel key*/ + {"&9", "S-begin"}, /*shifted begin key*/ + {"*0", "S-find"}, /*shifted find key*/ + {"*1", "S-execute"}, /*shifted execute? actually shifted command key*/ + {"*4", "S-delete"}, /*shifted delete-character key*/ + {"*7", "S-end"}, /*shifted end key*/ + {"*8", "S-clearline"}, /*shifted clear-to end-of-line key*/ + {"#1", "S-help"}, /*shifted help key*/ + {"#2", "S-home"}, /*shifted home key*/ + {"#3", "S-insert"}, /*shifted insert-character key*/ + {"#4", "S-left"}, /*shifted left-arrow key*/ + {"%d", "S-menu"}, /*shifted menu? actually shifted options key*/ + {"%c", "S-next"}, /*shifted next key*/ + {"%e", "S-prior"}, /*shifted previous key*/ + {"%f", "S-print"}, /*shifted print key*/ + {"%g", "S-redo"}, /*shifted redo key*/ + {"%i", "S-right"}, /*shifted right-arrow key*/ + {"!3", "S-undo"} /*shifted undo key*/ }; static char **term_get_fkeys_arg; -- 2.39.2