How to disable the arrow keys in Google Chrome, while watching Youtube videos, on Ubuntu

This question is very specific, so let me explain and bear with me:

I want to disable a user from accidentally skipping content while watching YouTube movies on an instance of Google Chrome on Ubuntu. For this, I want to disable the right arrow key for a specific user.

Note: I understand that this technique is easily to circumvent by using the mouse, but for simplicity I just want to prevent skipping by key presses.

I have read about the Xmodmap here, and this Mediakeys with .Xmodmap HOWTO. My file is like this:

keycode 114 = 

Simple as that, and it works, except for YouTube movies. I works in all the OS windows, in the URL toolbar of Chrome, textareas like this question's editor box, but not for the video player. It seems, that Google Chrome's video player uses a different, more direct keyboard input source the the x window system.

So this is the question:

How to disable the arrow keys (content skipping by keyboard) in Google Chrome, while watching YouTube videos, on Ubuntu.

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like