You are not logged in.

1

Thursday, July 3rd 2003, 11:34pm

Inhibiting some key combinations

I need to inhibit the usage of some key combinations like CTRL+ALT+BACKSPACE, CTRL+ALT+F1...Fn, etc during an application under KDE. Doing so I want to prevent final users from attempting to shut down X. How can I do that? Does Linux have any native resources in order to implement this protection?

Thanks in advance
Paulo Góes

2

Thursday, October 9th 2003, 3:14pm

If you want to force it, see the KIOSK stuff of KDE.

If it is volunteerly, just remove the shortcuts with the Control Center.

Have a nice day!

m4ktub

Intermediate

Posts: 257

Location: Lisbon, Portugal

Occupation: Software Engineer

  • Send private message

3

Saturday, October 11th 2003, 6:03pm

About the CTRL+ALT+BACKSPACE you probably need to edit the X configuration file. All GUI events follow the order
X -> Win manager -> Application -> Widget1 -> ...
So if you disable events at the Window manager level the CTRL+ALT+BACKSPACE or CTRL++ will still do their function.

Any way it will be difficult to control or disable all the shortcuts because if the user also runs KDE he will have control over the global shortcuts and not the application

4

Saturday, October 11th 2003, 6:19pm

I am sure that the KIOSK people would have solutions for such problems. (You do not want a user of for example an Internet Cafe exit X-Window either.)

However you are probably right that a solution at X-Window level exists.

As for disabling changing shortcuts, I am pretty sure that this can be done in the KIOSK modus.

(Info about KIOSK: see kdelibs/kdecore/README.kiosk in KDE's source or in WebCVS:
http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdelibs/kdecore/README.kiosk )

Have a nice day!

5

Sunday, October 12th 2003, 8:19am

Quoted

About the CTRL+ALT+BACKSPACE you probably need to edit the X configuration file.


Yes, CTRL+ALT+BACKSPACE and ctrl-alt-+ can be disabled via XF86-config.

Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
EndSection

but i dont know how to disable CTRL-ALT-F1...
CU

Michael

In a world without fences, who need Gates?