draguboard keyboard settings fix

Courtesy of @lauzonhomeschool
master
thyttan 2023-09-12 12:18:44 +02:00
parent b6ec2a4761
commit 0c5033a7c1
4 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,4 @@
0.01: New App based on dragboard, but with a U shaped drag area 0.01: New App based on dragboard, but with a U shaped drag area
0.02: Catch and discard swipe events on fw2v19 and up (as well as some cutting 0.02: Catch and discard swipe events on fw2v19 and up (as well as some cutting
edge 2v18 ones), allowing compatability with the Back Swipe app. edge 2v18 ones), allowing compatability with the Back Swipe app.
0.03: Fix "Uncaught Error: Unhandled promise rejection: ReferenceError: "dragHandlerDB" is not defined"

View File

@ -148,7 +148,7 @@ exports.input = function(options) {
g.clearRect(Bangle.appRect); g.clearRect(Bangle.appRect);
resolve(text); resolve(text);
}, },
drag: dragHandlerDB drag: dragHandlerUB
}); });
Bangle.prependListener&&Bangle.prependListener('swipe', catchSwipe); // Intercept swipes on fw2v19 and later. Should not break on older firmwares. Bangle.prependListener&&Bangle.prependListener('swipe', catchSwipe); // Intercept swipes on fw2v19 and later. Should not break on older firmwares.

View File

@ -1,6 +1,6 @@
{ "id": "draguboard", { "id": "draguboard",
"name": "DragUboard", "name": "DragUboard",
"version":"0.02", "version":"0.03",
"description": "A library for text input via swiping U-shaped keyboard.", "description": "A library for text input via swiping U-shaped keyboard.",
"icon": "app.png", "icon": "app.png",
"type":"textinput", "type":"textinput",

View File

@ -21,7 +21,7 @@
value: settings[key] == color, value: settings[key] == color,
onchange: () => { onchange: () => {
if (color >= 0) { if (color >= 0) {
settings[key] = color; settings[key] = parseInt(color);
} else { } else {
delete settings[key]; delete settings[key];
} }