Xmanager Forum

Not possible to map certain sun-keyboard keys?

Last post: Thursday, December 2, 2004 2:22 AM by Joerg, 5 reply

 
Wednesday, December 1, 2004 12:44 AM - Joerg

Not possible to map certain sun-keyboard keys?

 
Hello support,

I installed both, version 1.39 and 2.0 of Xmanager (Eval. version), but both lack the possibility to map the both most vital keys from the sun-keyboard (L7) and (L5)!

No matter what I tried, I tested (mode_switch)- to be mapped for 'L5', also checked keysym "SunFront", did that for a compose-sequence , - both simply show no result in Xmanager where I expected the functionality (Window-stacking). Same is for from the sun-keyboard: also not-work!

Others do indeed work, e.g. - mapped for (L4) works as well as (L6)/(L8) on -/-.

Another bug is, that holding down mode_switch first generates correctly "mode_switch" keysym but than continuously press/release events!

any ideas?
Wednesday, December 1, 2004 1:00 AM - David

Re: Not possible to map certain sun-keyboard keys?

 
You could find a similar problem from the article #281 at:

/bbs/detail.html?id=xmanager&num=488&page=1

David
Wednesday, December 1, 2004 2:03 AM - Joerg

Re: Re: Not possible to map certain sun-keyboard keys?

 
Thanks but not very handy due to the need for changing the Unix environment...

I found a different solution:
it seems not possible to map and to any modifier-sequence (-), but it works well to map them directly to , .
So, as I only need the original Function-Keys F1 to F10 (for Midnight-Commander:), I ended in following modifications:

- = // Undo
- = // Find
- = // Cut
- = // Copy
- = // Paste
= // Front
= // Open

Those "SunCopy"/"SunPaste"/etc. KeySyms never worked for me, but the L-key mappings do pretty well!

This works for CDE and OpenWindows via XDMCP without any modifications at the UNIX side -- but it seems that the OpenWindow wm looses the mouse quite often (no reaction on mouse events)!
-- but the key-repeat bug still persists!
Thursday, December 2, 2004 12:12 AM - Support

Re: Re: Re: Not possible to map certain sun-keyboard keys?

 
The key in European keyboard generates both and keys at the same time, so Xmanager processes it as only key. However, the dangling key event is repeated while pressing the key.

In most cases, the repeating does not cause a problem because it generates UP & DOWN events almost simultaneously. In other words, it is ignored by X window applications.

Could you let us know what problems the repeating keys cause in your system?

Thanks for your cooperation.

----
Technical Support
Thursday, December 2, 2004 2:16 AM - Joerg

a working sample of a german kb emulating SUN special keys

 
First to answer the previous question:
NO, it does not cause problems (at least I haven't found any) - I only noticed this via "xev"!

Because editing my previous post (which contains an error) isn't possible, here's a better keyboard-mapping:

sequence is: = (what to type in kb editor)

+ (mode_switch "F1")
+ (mode_switch "Esc")
+ (mode_switch "F3")
+ (mode_switch "F7")
+ (mode_switch "F8")
+ (mode_switch "F9")
("SunFront")
("SunOpen")

furthermore is assigned to be "mode_switch" along with modifier "mod2"

works pretty well, only drawback is that You lose the original key (has some shortcuts in CDE for window resizing) - but I haven't fount a better one for mode_switch as the isn't available in the german layout...
Thursday, December 2, 2004 2:22 AM - Joerg

Fixed: a working sample of a german kb emulating SUN special keys

 
Aargh - too bad editing isn't working:

sequence is: (what to type in kb editor)

+ (mode_switch "Help")
+ (mode_switch "Esc")
+ (mode_switch "F19")
+ (mode_switch "F20")
+ (mode_switch "F16")
+ (mode_switch "F18")