cage icon indicating copy to clipboard operation
cage copied to clipboard

Firefox/chrome kiosk allows restricted keyboard shortcuts

Open jordankoehn opened this issue 11 months ago • 4 comments

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 avatar Mar 04 '24 20:03 jordankoehn

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

joggee-fr avatar Mar 04 '24 21:03 joggee-fr

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

jordankoehn avatar Mar 04 '24 21:03 jordankoehn

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.

emersion avatar Mar 05 '24 08:03 emersion

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

jordankoehn avatar Mar 06 '24 13:03 jordankoehn