How to disable hotkeys (Alt+F4, Ctrl+T, Ctrl+W, etc.)

2,463 views
Skip to first unread message

Ferry

unread,
Jun 3, 2016, 3:01:24 PM6/3/16
to Chromium-discuss
Hi there,

we're looking to disable the hotkeys in Chromium (whilst in kiosk mode if that matters). This so a user can't close the browser, can't go to different webpages, etc.

They need to be locked completely into the default loaded page.

We're trying this with Fedora 23 currently. Tried disabling the F4 key completely by running 'xmodmap -e "keycode 70 ="' and this works for most apps, but not chromium. It does work on my gentoo installation. If I look at the executables however there's a lot of linking on Fedora to X libraries that came with Chromium, whilst on my gentoo system everything points to the system libraries. Suspect it doesn't work on Fedora because of the used libraries.

Whilst F4 can, if we can get it to work on Fedora, easily be disabled by remapping the key, this doesn't help with Ctrl+T, Ctrl+W, etc. yet.

Anyone aware of any solutions?

Kind regards,

PhistucK

unread,
Jun 3, 2016, 4:43:55 PM6/3/16
to freak...@gmail.com, Chromium-discuss
​It depends on the shortcut, but you can create an extension that listens to chrome.tabs.onClosed and creates a new tab and listens to chrome.tabs.onCreated and closes that tab.
Regarding shutting down Chromium, you can start it using a shell script that basically does something like (this is the JavaScript equivalent, I do not know much shell scripting) -
while (true) runChromium
This way, every time Chromium is closed, the scripts runs it again.


PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

Reply all
Reply to author
Forward
0 new messages