How I can set command-delete as a custom keyboard shortuct?
I figured out the answer. It doesn't appear to be possible to achieve that using System Preferences. I had to use Terminal to directly edit defaults using the following command.
defaults write &lt;plist name of application&gt; NSUserKeyEquivalents -dict '&lt;name of button in menu bar&gt;' '@'
For instance, to map ⌘+⌫ to Delete menu item in Anki, I used the following command:
defaults write net.ankiweb.dtop NSUserKeyEquivalents -dict 'Delete' '@'
There is an invisible unicode character for backspace behind @. To enter it manually, open Emojis &amp; Symbols and type &quot;u+0008&quot;.