switch directions for Caps lock switch and Move cursor mode

pull/2155/head
thyttan 2022-09-29 23:34:45 +02:00
parent baeaec3694
commit c6e9e971e3
4 changed files with 6 additions and 5 deletions

View File

@ -2,3 +2,4 @@
0.02: Introduce setting "Show help button?". Make setting firstLaunch invisible by removing corresponding code from settings.js. Add marker that shows when character selection timeout has run out. Display opened text on launch when editing existing text string. Perfect horizontal alignment of buttons. Tweak help message letter casing.
0.03: Use default Bangle formatter for booleans
0.04: Allow moving the cursor
0.05: Switch swipe directions for Caps Lock and moving cursor.

View File

@ -2,7 +2,7 @@
A library that provides the ability to input text in a style familiar to anyone who had a mobile phone before they went all touchscreen.
Swipe right for Space, left for Backspace, down for cursor moving mode, and up for Caps lock. Swipe left and right to move the cursor in moving mode. Tap the '?' button in the app if you need a reminder!
Swipe right for Space, left for Backspace, down for Caps lock switch, and up for cursor moving mode. Swipe left and right to move the cursor in moving mode. Tap the '?' button in the app if you need a reminder!
At time of writing, only the [Noteify app](http://microco.sm/out/Ffe9i) uses a keyboard.

View File

@ -17,7 +17,7 @@ exports.input = function(options) {
"4":"GHI4","5":"JKL5","6":"MNO6",
"7":"PQRS7","8":"TUV80","9":"WXYZ9",
};
var helpMessage = 'Swipe:\nRight: Space\nLeft:Backspace\nUp: Caps lock\nDown:Move mode';
var helpMessage = 'Swipe:\nRight: Space\nLeft:Backspace\nUp: Move mode\nDown:Caps lock';
var charTimeout; // timeout after a key is pressed
var charCurrent; // current character (index in letters)
@ -122,10 +122,10 @@ exports.input = function(options) {
function onSwipe(dirLeftRight, dirUpDown) {
if (dirUpDown == -1) {
setCaps();
} else if (dirUpDown == 1) {
moveMode = !moveMode;
displayText(false);
} else if (dirUpDown == 1) {
setCaps();
} else if (dirLeftRight == 1) {
if (!moveMode){
text = text.slice(0, textIndex + 1) + " " + text.slice(++textIndex);

View File

@ -1,6 +1,6 @@
{ "id": "kbmulti",
"name": "Multitap keyboard",
"version":"0.04",
"version":"0.05",
"description": "A library for text input via multitap/T9 style keypad",
"icon": "app.png",
"type":"textinput",