dnschneid / crouton

Chromium OS Universal Chroot Environment
https://goo.gl/fd3zc?si=1
BSD 3-Clause "New" or "Revised" License
8.57k stars 1.24k forks source link

Ctrl-w tab protection for xiwi #3222

Closed spiffytech closed 2 years ago

spiffytech commented 7 years ago

When I have a xiwi tab open and hit Ctrl-w the tab gets closed.

Please add basic tab protection (prompt the browser's unsaved input "Are you sure you want to close this tab?"), or more preferable, create an app version of xiwi windows (similar to the Crosh Window app) that can capture and use Ctrl-w.

jeremy-wl commented 7 years ago

I have the same issue here. Any shortcuts that are available in chromeOS won't work inside the xiwi tab. Some really annoying ones include ctrl+w, ctrl+alt+t.

I am thinking it would be the best to assign all key combinations to crouton if the xiwi tab is active. Otherwise some useful hotkeys will become useless in xiwi mode.

spiffytech commented 7 years ago

I found a partial solution to this on the cheatsheet page:

Launch a single app in a Window in the background: sudo startxiwi -b -n chrootname app_name

This is a specific version of the generality sudo enter-chroot -n chrootname xiwi app_name, which opens any application in a new window that is protected from Ctrl-w, Ctrl-tab, etc.

However:

  1. The xiwi documentation doesn't mention this is possible
  2. I can't find documentation on launching new windows from inside an existing chroot
    • The crouton extension seems to only support grabbing one window at a time. This should be a separate ticket.

So given (1), I'd say this ticket could be closed with a documentation update.

thatnerdjosh commented 7 years ago

@spiffytech do you mean that if you run sudo startxiwi -b -n chrootname app_name, that it is protected against Ctrl-w? That does not seem to be the case on my end :/

DennisLfromGA commented 7 years ago

Clicking on the 'Crouton Integration' extension allows you to select and open any chroots in the drop-down.

Hope this helps, -DennisL