You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Mike Jumper (Jira)" <ji...@apache.org> on 2021/02/18 21:58:00 UTC

[jira] [Commented] (GUACAMOLE-1292) Preventing unintentional window/tab closing with beforeUnload

    [ https://issues.apache.org/jira/browse/GUACAMOLE-1292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286746#comment-17286746 ] 

Mike Jumper commented on GUACAMOLE-1292:
----------------------------------------

{quote}
Found a solution..
{quote}

[~phreakocious], can you please elaborate for the sake of anyone else that runs across your issue here?

> Preventing unintentional window/tab closing with beforeUnload
> -------------------------------------------------------------
>
>                 Key: GUACAMOLE-1292
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1292
>             Project: Guacamole
>          Issue Type: Improvement
>            Reporter: phreakocious
>            Priority: Major
>
> Many people who use my guac systems have unintentionally closed their window/tab with ctrl-w in a command line session.  I have added the beforeUnload event listener code to prevent this, but it currently impacts all windows.  I'd like it to be in effect only for active connection tabs.  Could someone help me find a way to reliably determine if the user is currently in a remote connection vs in a menu?  Thanks!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)