Merge pull request #2932 from thyttan/kbmulti
kbmulti: Compatability with `backswipe` on newer firmwaresmaster
commit
ba995ddf4e
|
|
@ -4,3 +4,6 @@
|
||||||
0.04: Allow moving the cursor
|
0.04: Allow moving the cursor
|
||||||
0.05: Switch swipe directions for Caps Lock and moving cursor.
|
0.05: Switch swipe directions for Caps Lock and moving cursor.
|
||||||
0.06: Add ability to auto-lowercase after a capital letter insertion.
|
0.06: Add ability to auto-lowercase after a capital letter insertion.
|
||||||
|
0.07: Add compatability with `backswipe` app by using `Bangle.prependListener()` and `E.stopEventPropagation`- requires fw 2v19 or cutting
|
||||||
|
edge versions of 2v18. Falls back on `Bangle.on()` for backwards
|
||||||
|
compatability.
|
||||||
|
|
|
||||||
|
|
@ -154,6 +154,7 @@ exports.input = function(options) {
|
||||||
displayText(false);
|
displayText(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
E.stopEventPropagation&&E.stopEventPropagation();
|
||||||
}
|
}
|
||||||
|
|
||||||
function onHelp(resolve,reject) {
|
function onHelp(resolve,reject) {
|
||||||
|
|
@ -161,7 +162,7 @@ exports.input = function(options) {
|
||||||
E.showPrompt(
|
E.showPrompt(
|
||||||
helpMessage, {title: "Help", buttons : {"Ok":true}}
|
helpMessage, {title: "Help", buttons : {"Ok":true}}
|
||||||
).then(function(v) {
|
).then(function(v) {
|
||||||
Bangle.on('swipe', onSwipe);
|
if (Bangle.prependListener) {Bangle.prependListener('swipe', onSwipe);} else {Bangle.on('swipe', onSwipe);}
|
||||||
generateLayout(resolve,reject);
|
generateLayout(resolve,reject);
|
||||||
layout.render();
|
layout.render();
|
||||||
});
|
});
|
||||||
|
|
@ -208,7 +209,7 @@ exports.input = function(options) {
|
||||||
} else {
|
} else {
|
||||||
generateLayout(resolve,reject);
|
generateLayout(resolve,reject);
|
||||||
displayText(false);
|
displayText(false);
|
||||||
Bangle.on('swipe', onSwipe);
|
if (Bangle.prependListener) {Bangle.prependListener('swipe', onSwipe);} else {Bangle.on('swipe', onSwipe);}
|
||||||
layout.render();
|
layout.render();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ "id": "kbmulti",
|
{ "id": "kbmulti",
|
||||||
"name": "Multitap keyboard",
|
"name": "Multitap keyboard",
|
||||||
"version":"0.06",
|
"version":"0.07",
|
||||||
"description": "A library for text input via multitap/T9 style keypad",
|
"description": "A library for text input via multitap/T9 style keypad",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type":"textinput",
|
"type":"textinput",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue