Use case or problem
The muscle memory that people often have for the keyboard command [CTRL - W] or [CMD - W] to close a tab or window, frequently interferes with an Obsidian UI functionality.
I believe it is not uncommon for a person to click one of the buttons in the upper right sidebar such as the Backlinks button or the file properties button. If that button is the last thing clicked, it gets removed from the user interface when a person types CTRL-W. But that is an unexpected behaviour. Normally the expectation is for the tab or window to close as a result of CTRL-W. It’s also probably uncommon that users want to add and remove buttons from the toolbar so frequently that it requires the CTRL-W sequences of keys.
Searching in the forum shows more than one post from confused users that did not realize that behaviour would occur. For a user, such as myself, that has recognized this, I almost daily, still accidentally delete buttons from my interface because of the automatic CTRL-W muscle memory.
Proposed solution
Ideally CTRL-W would not have any affect on the user interface elements like buttons. It would just close the current tab or if there is only one tab, it could potentially close the application, which seem to be common patterns in other applications.
If somebody wants to remove a button from the toolbar, there could be a “Remove” option from a right click context menu, or the ability to drag the button off the toolbar, or an option to remove it in the command palette. Lots of possibilities aside from CTRL-W.
Current workaround (optional)
I don’t think that there really is a work-around. The problem requires that a user do something like CTRL-P, search for properties or back links, and then click to have them added back into the top, right toolbar. I imagine (based on evidence in this forum) that many users don’t even realize what the problem was or how to reinstate their toolbar icons.

