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

ctrl+w closes the browser window in webssh2 #267

Closed
premkumarrtech opened this issue Oct 26, 2021 · 5 comments
Closed

ctrl+w closes the browser window in webssh2 #267

premkumarrtech opened this issue Oct 26, 2021 · 5 comments

Comments

@premkumarrtech
Copy link

Browser is getting closed when we press ctrl+w in webssh2 app

ctrl+w is assigned to search a text in nano editor in linux\ubuntu

Please help me on this

  • Node and NPM Version
    • node -v v14.17.5
    • npm -v 6.14.14
  • Server OS Version / Distribution / Processor Architecture
    • cat /etc/os-release
      NAME="Ubuntu"
      VERSION="20.04.3 LTS (Focal Fossa)"
      ID=ubuntu
      ID_LIKE=debian
      PRETTY_NAME="Ubuntu 20.04.3 LTS"
      VERSION_ID="20.04"
  • WebSSH2 release version
    • grep version app/package.json 0.4.2
  • OS and Version of SSH server connecting to
    • sshd -v OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f
  • Browser Version and OS
    • chrome 95.0.4638.54
    • windows 10 - 64bit
  • Any log or messages from the WebSSH2 output
    • none
  • screenshot of nano editor
    image
@premkumarrtech
Copy link
Author

Is there anyway not to close the browser when we hit ctrl+w

@billchurch
Copy link
Owner

Probably need something it this to capture it.

https://stackoverflow.com/questions/7295508/javascript-capture-browser-shortcuts-ctrlt-n-w

Will play around with it.

@premkumarrtech
Copy link
Author

Thanks @billchurch for your reply... I have gone through the links of the link which you provided.. seems it's not possible to overwrite the reserved the keyboard shortcuts... Let's give a try ..I will update if any progress... Please commit if any possible workaround... blocked to use nano editor search functionality due to this restriction

@premkumarrtech
Copy link
Author

For time being, I have changed the shortcut to search as ctrl+F in ctrl+w in nano setting. But this is not case for all the scenario. We would need to fix this issue

image
image

@billchurch
Copy link
Owner

Yeah, everything points to this being hard-wired for Windows and Linux versions (Mac uses command+W so not an issue there). There are some browser extensions which can help (though user has to install)

And some OS level fixes:

Closing this as it seems not possible in the code we control.

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

2 participants