commit fcb438ef47ed5540024277756369aef69283d127
parent a89eda6a1ae8f0ea25e55309cb9e1de9182cd202
Author: tongong <tongong@gmx.net>
Date: Thu, 13 Jan 2022 12:19:47 +0100
bugfix
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/modules/input.js b/src/modules/input.js
@@ -17,8 +17,9 @@ function pressed2gesture(pressed) {
// returns false if gestures are not enough to create a character
function gestures2char(gestures) {
if (gestures.length == 0) return false;
- if (gestures.length == 1) {
- switch (gestures[0]) {
+ let lastg = gestures[gestures.length - 1];
+ if (lastg >= 7) {
+ switch (lastg) {
case 7:
return " ";
case 8: