I like to run a fullscreen browser on the remote side of the machine I’m connecting to (macOS -> macOS), and I keep hitting ⌘-w (i.e. Command-W) intending to close a tab and then accidentally closing the entire connection instead.
I tried overriding the “Close window” menu shortcut for the NoMachine app both via NSUserKeyEquivalents as well as in System Preferences but that didn’t seem to do the trick.
I don’t really care about ever closing the NoMachine connection with a shortcut so would prefer to just disable it entirely. Is this possible?
Thanks, yes I tried checking there, but there is no mapping for Command-W. There is an option for “Terminate the session”, but it was not set to Command-W, and setting it to something else does not affect the behavior of Command-W.
Try enabling the “Grab the keyboard” in the Input settings inside the session (via the Menu, Ctrl-Alt-0). When the NoMachine window has the focus, most of the keys are “grabbed” (all the keys/shortcuts that the system allows to grab) and sent to the session instead of the local system.
Thanks, yes grabbing the keyboard is a workaround, but it means that I can’t easily Command-Tab away from the NoMachine client window without first ungrabbing.
In my use case I’m basically running a single application on the remote-side fullscreen (just a browser) and am trying to get as close as I can to an “application remoting” experience, i.e. what VMware would call “Unity view”, and ideally I’d have something like this to configure which key combinations go to the local vs. remote side: