Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grab all input devices #298

Open
ardera opened this issue Oct 26, 2022 · 6 comments
Open

grab all input devices #298

ardera opened this issue Oct 26, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@ardera
Copy link
Owner

ardera commented Oct 26, 2022

use EVIOCGRAB to grab all input devices for exclusive use.
otherwise, if people have a keyboard attached and a console running, the keyboard can be used to enter things on the console.

See discussion in #256

@ardera ardera added the enhancement New feature or request label Oct 26, 2022
@niklasbartsch
Copy link

And how do I use it?

Since the latest Binary update to Flutter 3.3.7 the keyboard input doesn't work anymore in my Flutter App. It only appears in the console.

@ardera
Copy link
Owner Author

ardera commented Nov 19, 2022

@niklasbartsch Should work OOB. If it doesn't, could be libinput exposes your keyboard as both a key and pointer device, and at least in the master branch, that case isn't handled correctly yet.

Though it's handled correctly on the feature/compositor-ng branch, can you try there and lmk if it works?

@niklasbartsch
Copy link

Still doesn't work, event with the feature/compositor-ng Branch

@ardera
Copy link
Owner Author

ardera commented Nov 20, 2022

@niklasbartsch That's a bug then, can you run libinput debug-events, press some keys, and send me the complete output? And what does your flutter-pi output look like?

Also please open a new issue for that (and post the logs there)

@niklasbartsch
Copy link

I opened the Issue #304.
How do I use libinput debug-events?

@yaliv
Copy link

yaliv commented Aug 22, 2024

I know, it's really annoying when the keyboard inputs also appear on the console.
Let's say you have a login screen, and some users know that they can close the app with Ctrl+C, that would be a security issue.

In my case, I create an autorun script to run my app. So I can use stty -echo command as a workaround. See this SO answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants