File: gen_inp.patch

package info (click to toggle)
xcin 2.5.2-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 3,732 kB
  • ctags: 2,972
  • sloc: ansic: 26,256; sh: 2,294; makefile: 864
file content (17 lines) | stat: -rw-r--r-- 681 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- gen_inp.c~	Mon May 29 01:07:56 2000
+++ gen_inp.c	Mon May 29 01:12:54 2000
@@ -550,6 +550,14 @@
 commit_keystroke(gen_inp_conf_t *cf, inpinfo_t *inpinfo, gen_inp_iccf_t *iccf)
 /* return: the IMKEY state */
 {
+    /* BEGIN array30@big5 hack by Anthony Fok <foka@debian.org> */
+    if (!strcmp(cf->inp_ename, "array30") &&
+	    !strcmp(iccf->keystroke, "t") || !strcmp(iccf->keystroke, "T")) {
+	/* Output "de5" when keystroke is "t", special for Array30 */
+	strcpy(iccf->keystroke, "lplh");
+    }
+    /* END array30@big5 hack */
+
     if (match_keystroke(cf, inpinfo, iccf)) {
         if (inpinfo->n_mcch == 1) {
             commit_char(inpinfo, iccf, inpinfo->mcch);