jed-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: jed, edt and keydefs


Hi,

Ideally for edt would be that the GOLD key would only be used
as a key that can be pressed before another keypad or normal
key to get a second function. Pressing it twice may or may not toggle the state of the keypad
depending on the platform...

On Windows with numlock as the GOLD key this works fine. On other
systems, usually numlock changes the state of the keypad.
So I chose KP_7 as the GOLD key and, after hitting numlock twice,
the keypad changes and KP_7 produces a '7'. Hitting numlock twice
will change the state once again and then KP_7 works as the GOLD key.

         Thei.

+--------------------------------------------------------------------+

On Thu, 19 Jan 2006, G. Milde wrote:

On 18.01.06, Thei Wijnen wrote:
...
But the point remains that on Linux, with the
original menu.sl and edt.sl, I can not bind the GOLD key to a key
different from F1 (e.g. Key_Num_7) and then bind F1 to a different
function. After removing the binding in menu.sl it works.
So there is a problem with overwriting keybindings on Linux, and it
does not exist on Windows.

Did you try unsetkey() to free F1 already?

The Gold key is very hardcoded into edt.sl, so on Unix, it does some tricks
I do not completely understand with get_termcap_string(t) in

 private define application_keypad_mode (state)


What is the behaviour of the GOLD key in an "original" EDT editor (or the
one you wish to achieve)?

* toggle the state of the keypad
* pres together with a keypad key to get the second function
* pres before  a keypad key to get the second function

Günter

--
Milde ife.et.tu-dresden.de

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.

[2006 date index] [2006 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]