Operating System - HP-UX
1849589 Members
7010 Online
104044 Solutions
New Discussion

Re: CDE and DtKeyBindings

 
SOLVED
Go to solution
Dedieu
Occasional Advisor

CDE and DtKeyBindings

Hi,

I need to deactivate the KeyBinding : Alt Ctrl Shiftexclam. So i defined in $HOME/.dt/dtwrmc :
Keys DtKeyBindingsPerso
{
Alt Ctrl Shiftexclam root|icon|window f.refresh
}

and in $HOME/Dtwm :
Dtwm*keyBindings: DtKeyBindingsPerso

but there is no effect.

any help, thank you

Gerard Dedieu
7 REPLIES 7
Alex Glennie
Honored Contributor

Re: CDE and DtKeyBindings

did you logout of CDE after the change ?
Alex Glennie
Honored Contributor
Solution

Re: CDE and DtKeyBindings

ignore that :

*** See page 7-35 of Using the Xwindow System manual:
You can modify or delete any of these bindings, except "Alt Ctrl
Shiftexclam", by editing or deleting the line. (In order for the
editing to have an effect, the keyBindings resource in the .Xdefaults
file must be set to DefaultKeyBindings.) SO It is not possible to alter
the DEFAULT BEHAVIOR. f.set_behavior toggles between your customized
behavior and a default behavior, which is hardwired into the code.

So CAN NOT Modify Alt Ctrl Shiftexclam f.set_behavior in the
DefaultKeyBinsings line in sys.vuewmrc file, this is hardwired to X.
Dedieu
Occasional Advisor

Re: CDE and DtKeyBindings

OK

When i switch to default behavior (Alt Ctrl shift) i have with the root menu the item : New window.

Is it possible to delete it ?

Thank you

Gerard Dedieu
Alex Glennie
Honored Contributor

Re: CDE and DtKeyBindings

Ah I see where you are comming from ... try to prevent users getin access to command line etc ? right ?

IT sounds like it could be possible, I'll do some digging and let you know.
Alex Glennie
Honored Contributor

Re: CDE and DtKeyBindings

found it : the default behaviour switch relates to mwm see man page for dtwm and mwm for the gory details :

sooooo => edit /usr/lib/X11/system.mwmrc file and edit the DefaultRootMenu section wrt New Window & xterm & ?

good luck & I think that should do it ?
Dedieu
Occasional Advisor

Re: CDE and DtKeyBindings

it didn't work, i have modified the file but i always have the item : New window.
Wodisch
Honored Contributor

Re: CDE and DtKeyBindings

Hello Dedieu,
have you checked wether your user has a private
"$HOME/.mwmrc"? If it does exist, it will be used by
"mwm", hence modify that, right mouse click into the
root-window (background) and "Restart".
Then try again.

Oh, and there is an HP-extension to X-Windows-API,
where you can switch off stuff like the "kill X-server"
key sequence. Perhaps you can use that one to modify
the default translation of Ctrl-Alt-Shift-Exclam...

HTH,
Wodisch