keyboardio / Chrysalis

Graphical configurator for Kaleidoscope-powered keyboards
https://github.com/keyboardio/Chrysalis#chrysalis
GNU General Public License v3.0
496 stars 64 forks source link

api/focus: Guard keymap pulling against zero-sized keymaps #1164

Closed algernon closed 2 years ago

algernon commented 2 years ago

When pulling the keymap from the keyboard, handle the case where either the built-in, or the custom keymap are zero-sized. Instead of raising an exception, treat these as if the keymaps were empty.