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

Firefox/chrome kiosk allows restricted keyboard shortcuts #320

Open
jordankoehn opened this issue Mar 4, 2024 · 4 comments
Open

Firefox/chrome kiosk allows restricted keyboard shortcuts #320

jordankoehn opened this issue Mar 4, 2024 · 4 comments

Comments

@jordankoehn
Copy link

jordankoehn commented Mar 4, 2024

When running Firefox/chrome in a typical Linux de (tested on sway). Kiosk mode in these browsers do not allow shortcuts such as ctrl+t, ctrl+w, etc. On cage kiosk mode starts and the taskbar is hidden, however I"m able to start new tabs, and close chrome/Firefox via a shortcut

I even tried starting a chrome PWA which should be restricted even further. This pops up another full screen window over the existing one with the address bar visible

@jordankoehn jordankoehn changed the title Firefox/chrome kiosk allow new tabs Firefox/chrome kiosk allows restricted keyboard shortcuts Mar 4, 2024
@joggee-fr
Copy link
Collaborator

Hi @jordankoehn ,
How do you start Firefox in kiosk mode for Cage?

@jordankoehn
Copy link
Author

/use/bin/Firefox --kiosk https://google.com

@emersion
Copy link
Contributor

emersion commented Mar 5, 2024

I tried chromium --enable-features=UseOzonePlatform --ozone-platform=wayland --kiosk. The behavior in Sway is the same as in cage: Ctrl+t and Ctrl+w work on both compositors.

@jordankoehn
Copy link
Author

jordankoehn commented Mar 6, 2024

I tried again and sway and you're right. Firefox/chrome/chromium all allow keyboard shortcuts when in kiosk mode. I found some related issues on chromium's GitHub. What's interesting is when running from windows all keyboard shortcuts are disabled in kiosk mode on these browsers.

Before I close this issue, any suggestions on disabling these shortcuts in cage/wlroots? Xdg keymaps only allow changing individual keys

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

No branches or pull requests

3 participants