• Nevermind, got it. A keyboard needs to look something like this:

    exports.input = function(options) {
      options = options||{};
      var text = options.text;
      if ("string"!=typeof text) text="";
    
      SOME FUNCTIONS AND VARIABLES
    
      return new Promise((resolve,reject) => {
        layout = new Layout( { LAYOUT }
          ,{back: ()=>{
            Bangle.setUI();
            g.clearRect(Bangle.appRect);
            resolve(text);
          }});
        g.clearRect(Bangle.appRect);
        layout.render();
      });
    };
    

    I'll wrap it up into an app next.

About

Avatar for Sir_Indy @Sir_Indy started