On Sun, 2 Feb 2003, Angus Leeming wrote: > > No, you are not missing anything. I was refering to this code. > > > By the way, a quick test shows that this code does not affect the > > precomposition point. That is, the keyboard signal does not go through > > this part ("turn_on_local_input(ob);") of the codes. > > Then you have to: > > 1. Check that 'Shift-Space' is passed to input.c. > > 2. Refine your test inside input.c: > printf("XK_space %d, key %d, CJK_li %d, shift %d\n", > XK_space, key, sp->CJK_local_input, shiftkey_down(kmask)); > > /* Turn on CJK composition */ > if (key == XK_space && shiftkey_down(kmask) && !sp->CJK_local_input) { > printf("Turning composition on!\n"); > turn_on_local_input(ob); > /* Do not actually print the XK_space. */ > return 0; > } > > /* Turn off CJK composition */ > if (key && sp->CJK_local_input) { > printf("Turning composition off!\n"); > printf("key = %d, keybuf = %s\n", key, keybuf); > turn_off_local_input(ob); > > /* Presumably the contents of keybuf should be passed > to the code below for printing? > */ > } >
'Shift-Space' does not produce any print-out! In fact, I see that no signal from the keyboard is entering into this part in input.c. Hm....... cghan