How to disable existing keyboard shortcuts

Quick word of warning for our fellow Silverbulleters.

As far as I can tell, since version 2.1.9, we can no longer disable the keyboard shortcut for a command by setting its keys to nil. Now, we should set them to "".

So, this doesn’t work anymore:

command.update {
  name = "Outline: Move Up",
  key = nil,
  mac = nil,
}

But this does:

command.update {
  name = "Outline: Move Up",
  key = "",
  mac = "",
}

Maybe this is just a me problem, but who knows? This might be helpful to someone else as well.

Hmm. This is not intentional, I’ll create an issue for it.

1 Like