Wherever you are calling layout.render() instead call
layout.setUI();
layout.render();
Seems to work for me when running your code. I just finished a keyboard app and I ended up needing to do that every time I switched to a particular layout.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Wherever you are calling
layout.render()
instead callSeems to work for me when running your code. I just finished a keyboard app and I ended up needing to do that every time I switched to a particular layout.