Re: Cursor key problems

Daniel Veillard (veillard@praslin.inrialpes.fr)
Thu, 21 Mar 1996 18:13:34 +0100

Hi Oliver,

>Thot seems to be a very nice and powerfull program, but I have one
>annoying problem: The cursor keys don't act as in other programs, where
>they move the insertion point. This is the case, although the
>keybindings for osfLeft etc. in XKeysymDB seem to be OK, and although I
>have tried setting thot*RemapModifiers to "no" the behavior doesn't
>change. Is this a bug or a very strange feature? I would be gratefull
>for any answers.

Currently, the cursor key are mapped to move in the document following
its structure. Remember that Thot is basically a structured document.
The left/right key are mapped to moving to the previous/next element at
the same level, upper select the father and down the first child.
However, the behaviour of the cursor keys can be modified. Have a look
at the /usr/local/thot/bin/thot.keyboard file :

Ctrl <Key>p: previous-line()
Ctrl <Key>n: next-line()
Ctrl <Key>b: backward-character()
Ctrl <Key>f: forward-character()
Ctrl <Key>a: beginning-of-line()
Ctrl <Key>e: end-of-line()

You can choose to have a more common mapping by using the cursor key
instead of the previous controls, e.g :

<Key>Left: backward-character()
<Key>Up: previous-line()
Ctrl <Key>Right: end-of-line()
<Key>Right: forward-character()
<Key>Down: next-line()
<Key>Insert: insert-string()

This id NOT connected in any way with the keyboard remapping controlled
with the RemapModifiers resource. Please remove this resource if you don't
need to change the Thot behaviour regarding the X keyboard and modifier
mapping ...

>BTW, I am running the beta-test version of thot for Linux-ELF under
>Linux 1.2.13 on a X11R6 server, and Motif 2.0 is installed on the
>system. I am using a german keyboard.

Hope that the fact that Motif 2.0 was previously installed on the
system doesn't change the behaviour of our locally compiled version
of Motif 2.0 embedded in the Thot binary.

Hope this help,

Daniel

Daniel Veillard : | INRIA Rhone-Alpes | You should give me a chance
Daniel.Veillard@imag.fr | 655 av de l'Europe | This can't be the end
Tel : (33) 76 61 53 85 | 38330 Montbonnot | I'm still loving you
Fax : (33) 76 54 76 15 | France | Scorpions
Home: (33) 76 63 05 86 | http://opera.inrialpes.fr/veillard/veillard.html
L'erreur est humaine mais un veritable desastre necessite un ordinateur