New issue
Advanced search Search tips

Issue 904479 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Feature



Sign in to add a comment

System-wide event listeners

Reported by jetsfan1...@gmail.com, Nov 12

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36

Steps to reproduce the problem:
Discord requires users to download the electron app in order to do system wide push to talk.

What is the expected behavior?

What went wrong?
An API should be created to allow developers to ask for permission to use system-wide event listeners. This will allow keyboard, etc. events to be fired when the browser tab is not in focus.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 70.0.3538.77  Channel: n/a
OS Version: 10.0
Flash Version:
 
Components: Blink>Input
Labels: Needs-Triage-M70
Cc: vamshi.kommuri@chromium.org
Labels: Triaged-ET Needs-Feedback
Thanks for filing the issue!

@Reporter: As we aren't very sure about the test steps to be followed in order to check and confirm the issue, could you please elaborate on the same.
From C#0 it is understood that this seems to be a Feature request, Please confirm if this is!. Any further inputs from your end may be helpful.
Yes sorry this is a feature request.

Certain web applications such as Discord would benefit from system-wide event listeners. In Discords case when using the electron app, users can set up keybinds that can be listened to for features such as push to talk or mute switching. The user would set up a button of their choice (ex. q, e, pause, etc.), and every time that button is pressed when the application is in the background or foreground that action would be triggered.

Since Discord is more like a companion app to playing video games with your friends, most of the time the application is in the background. As far as I know there is no way to allow web applications to listen to keyboard events when they are not in focus.

This may have security issues. I’m assuming you don’t want websites listening to any keyboard event they so choose. You could possibly require the website to use HTTPS. You could also require the user to accept a permission on either system-wide event listeners for any key or individual keys.
Project Member

Comment 5 by sheriffbot@chromium.org, Nov 13

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Type-Bug Target-72 FoundIn-72 M-72 FoundIn-71 FoundIn-70 OS-Linux OS-Mac Type-Feature
Status: Untriaged (was: Unconfirmed)
From the confirmation given by reporter in C#4, marking it as Untriaged by considering it as Feature request. Hence requesting someone from respective team to have a look into this for further inputs.

Thanks!
Status: Available (was: Untriaged)
Labels: -Pri-2 Pri-3
This seems like it would need appropriate OS-level hooks, I'm not sure if those exist. Since we're talking about an Electron app, if they do, the app should already be able to provide the functionality.

I don't think we'd want to do this for the general drive-by web.

Sign in to add a comment