Merge pull request #2820 from philipandresen/kbmatry_1_07
kbmatry1.07 Fix glitchy widget showthroughmaster
commit
4ebe589aa1
|
|
@ -5,3 +5,4 @@
|
||||||
1.04: Make code asynchronous and improve load time.
|
1.04: Make code asynchronous and improve load time.
|
||||||
1.05: Fix layout issue and rename library
|
1.05: Fix layout issue and rename library
|
||||||
1.06: Touch up readme, prep for IPO, add screenshots
|
1.06: Touch up readme, prep for IPO, add screenshots
|
||||||
|
1.07: Fix widget display
|
||||||
|
|
@ -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
|
* 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
|
* 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>}
|
* @returns {Promise<unknown>}
|
||||||
*/
|
*/
|
||||||
function input(options) {
|
function input(options) {
|
||||||
|
widgetUtils.hide();
|
||||||
options = options || {};
|
options = options || {};
|
||||||
let typed = options.text || "";
|
let typed = options.text || "";
|
||||||
let resolveFunction = () => {};
|
let resolveFunction = () => {};
|
||||||
|
|
@ -487,7 +490,8 @@ function input(options) {
|
||||||
Bangle.setLocked(false);
|
Bangle.setLocked(false);
|
||||||
})
|
})
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
g.clearRect(Bangle.appRect);
|
g.clear(true);
|
||||||
|
widgetUtils.show();
|
||||||
clearInterval(blinkInterval);
|
clearInterval(blinkInterval);
|
||||||
Bangle.setUI();
|
Bangle.setUI();
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ "id": "kbmatry",
|
{ "id": "kbmatry",
|
||||||
"name": "Matryoshka Keyboard",
|
"name": "Matryoshka Keyboard",
|
||||||
"version":"1.06",
|
"version":"1.07",
|
||||||
"description": "A library for text input via onscreen keyboard. Easily enter characters with nested keyboards.",
|
"description": "A library for text input via onscreen keyboard. Easily enter characters with nested keyboards.",
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"type":"textinput",
|
"type":"textinput",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue