peterklijn / hammerspoon-shiftit

A ShiftIt like Hammerspoon window management configuration
MIT License
470 stars 29 forks source link

How to unset a keybinding? #4

Open martisj opened 4 years ago

martisj commented 4 years ago

I don't use the upleft upright keys, is there a way to disable them?

Tried

spoon.ShiftIt:bindHotkeys({
  upleft = nil,
  upright = nil,
  botleft = nil,
  botright = nil,
})

to no avail

peterklijn commented 4 years ago

Thanks for reporting @martisj, I'm able to reproduce it.

It looks like Lua removes values from a table (map) when the value is nil. I'll get back to you with a solution or workaround a bit later :)