Merge pull request #2820 from philipandresen/kbmatry_1_07

kbmatry1.07 Fix glitchy widget showthrough
master
Gordon Williams 2023-06-14 08:39:46 +01:00 committed by GitHub
commit 4ebe589aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -5,3 +5,4 @@
1.04: Make code asynchronous and improve load time.
1.05: Fix layout issue and rename library
1.06: Touch up readme, prep for IPO, add screenshots
1.07: Fix widget display

View File

@ -1,3 +1,5 @@
const widgetUtils = require("widget_utils");
/**
* Attempt to lay out a set of characters in a logical way to optimize the number of buttons with the number
* of characters per button. Useful if you need to dynamically (or frequently) change your character set
@ -230,6 +232,7 @@ const defaultCharSetShift = [
* @returns {Promise<unknown>}
*/
function input(options) {
widgetUtils.hide();
options = options || {};
let typed = options.text || "";
let resolveFunction = () => {};
@ -487,7 +490,8 @@ function input(options) {
Bangle.setLocked(false);
})
}).then((result) => {
g.clearRect(Bangle.appRect);
g.clear(true);
widgetUtils.show();
clearInterval(blinkInterval);
Bangle.setUI();
return result;

View File

@ -1,6 +1,6 @@
{ "id": "kbmatry",
"name": "Matryoshka Keyboard",
"version":"1.06",
"version":"1.07",
"description": "A library for text input via onscreen keyboard. Easily enter characters with nested keyboards.",
"icon": "icon.png",
"type":"textinput",