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


Thei Wijnen wrote:
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.


xjed recieves different keysyms depending on the state of numlock:
if you press Keypad 0 and
  a) NumLock is ON,  xjed recieves 0xFFB0 = XK_KP_0
  b) NumLock is OFF, xjed recieves 0xFF9E = XK_KP_INSERT


xjed then translates both into the sequence "\003\033Op".
By using set_keysym you can change this to return different
sequences.

Can something similar be done on other systems?
Otherwise you could add a call to setkey for each sequence.

Marko

--------------------------
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]