Keybinding Conflict with ctrl-/


In my keymap, this is what I have.

'atom-workspace atom-text-editor:not([mini])':
  'ctrl-/': 'unset!'
  'ctrl-/': 'emmet:toggle-comment'

With this setup I expect emmet’s toggle comment to be triggered. However, it is not happening and Key binding Resolver still shows this

Apparently, emmet is losing out. How to resolve this issue?


You don’t need to unset the key first, you just need to set it so long as you are as specific or more specific with your selector. I was able to override the key using this:

'atom-workspace atom-text-editor:not([mini])':
  'cmd-/': 'key-binding-resolver:toggle'

(I don’t have the Emmet package installed.)


Good advise. The problem was with emmet. I must remember not to suspect Atom henceforth when the culprit could be something else :slight_smile:

Request you to close this topic.

closed #4