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?