Not possible to map certain sun-keyboard keys? [5]

Not possible to map certain sun-keyboard keys?

Wednesday, December 1, 2004 12:44 AM - Joerg
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?


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

Wednesday, December 1, 2004 1:00 AM - David
You could find a similar problem from the article #281 at:

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

David


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

Wednesday, December 1, 2004 2:03 AM - Joerg
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!


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

Thursday, December 2, 2004 12:12 AM - Support
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


a working sample of a german kb emulating SUN special keys

Thursday, December 2, 2004 2:16 AM - Joerg
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...


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

Thursday, December 2, 2004 2:22 AM - Joerg
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")

Previous views: 158