How to Disable Shortcuts (Hot;Key) with chromium switch?

131 views
Skip to first unread message

Özkan Göksu

unread,
Sep 11, 2017, 10:23:13 AM9/11/17
to Chromium-dev
Hello. I use chromium as a kiosk but still shortcuts working. How can i close or disable all shortcuts like ctrl+n ?
I didn't saw a switch for that or any other way.

Trent Apted

unread,
Sep 12, 2017, 1:06:52 AM9/12/17
to ozka...@gmail.com, Chromium-dev
On 12 September 2017 at 00:23, Özkan Göksu <ozka...@gmail.com> wrote:
Hello. I use chromium as a kiosk but still shortcuts working. How can i close or disable all shortcuts like ctrl+n ?
I didn't saw a switch for that or any other way.

It should be possible in fullscreen, so long as you call preventDefault on the event. See https://bugs.chromium.org/p/chromium/issues/detail?id=680809&desc=2#c34 

Özkan Göksu

unread,
Sep 12, 2017, 5:28:33 AM9/12/17
to Chromium-dev, ozka...@gmail.com
It's not a direct solution. Now I must change my web page code but in the end its working and its only solution for the problem! Thank you so much! 


12 Eylül 2017 Salı 08:06:52 UTC+3 tarihinde tapted yazdı:

PhistucK

unread,
Sep 12, 2017, 6:45:50 AM9/12/17
to ozka...@gmail.com, Chromium-dev
​You can create an extension​ that injects that to any page instead of adding this code to your web page.


PhistucK

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/c69e5c00-44dc-48d8-b653-923e405333b6%40chromium.org.

Message has been deleted

mj Maghsoudi

unread,
Sep 13, 2017, 4:11:08 AM9/13/17
to Chromium-dev
use this file =>-src/chrome/browser/ui/browser_command_controller.cc
u can disable every short keys here and there is no need to extensions and anything like that. we should not answer if we dont know the right  answer. respect people and dont confuse them.
pooooolie

PhistucK

unread,
Sep 13, 2017, 5:14:29 AM9/13/17
to mj Maghsoudi, Chromium-dev
First, that is only in case Özkan builds a customized build of Chromium. Since Özkan has not noted whether this is a customized build of Chromium, I did not assume that.
Second, an extension is more portable and does not lock you to a specific/customized version (sometimes out of your budget/expertise), nor does it require making changes to a website (sometimes out of your control).
(Also, by writing that code, whether for a website or for an extension, you could easily use it for both of them)

Either way might work, but knowing more of the options is better. And there is no "right" answer so far, because it depends on the exact situation/goals of Özkan.


PhistucK

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
Reply all
Reply to author
Forward
0 new messages