From f28a81a10c22e23c2463688542969480987907a8 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Tue, 15 Jun 2021 00:01:28 +0200 Subject: [PATCH] Contextual gesture for amfora This make gestures convenient enough to use the app only with gestures. All the scroll direction are used : Prev link Scroll Up Open in new tab Back prev page Open link Close tab Scroll Down Next Link Signed-off-by: Stacy Harper Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_inputhandler.sh | 36 +++++++++++++++++++++++++++++++ scripts/core/sxmo_lisgdstart.sh | 4 ++++ 2 files changed, 40 insertions(+) diff --git a/scripts/core/sxmo_inputhandler.sh b/scripts/core/sxmo_inputhandler.sh index afacb13..50c1553 100755 --- a/scripts/core/sxmo_inputhandler.sh +++ b/scripts/core/sxmo_inputhandler.sh @@ -113,6 +113,42 @@ case "$WMCLASS" in ;; esac ;; + *"amfora"*) + case "$ACTION" in + "downright") + key Tab + exit 0 + ;; + "upleft") + key Shift+Tab + exit 0 + ;; + "down") + key d + exit 0 + ;; + "up") + key u + exit 0 + ;; + "right") + key Return + exit 0 + ;; + "upright") + key Ctrl+t + exit 0 + ;; + "left") + key b + exit 0 + ;; + "downleft") + key Ctrl+w + exit 0 + ;; + esac + ;; esac esac diff --git a/scripts/core/sxmo_lisgdstart.sh b/scripts/core/sxmo_lisgdstart.sh index fab8a84..cad6c95 100755 --- a/scripts/core/sxmo_lisgdstart.sh +++ b/scripts/core/sxmo_lisgdstart.sh @@ -47,6 +47,10 @@ else -g '1,LR,*,*,sxmo_inputhandler.sh right' \ -g '1,DU,*,*,sxmo_inputhandler.sh up' \ -g '1,UD,*,*,sxmo_inputhandler.sh down' \ + -g '1,DRUL,*,*,sxmo_inputhandler.sh upleft' \ + -g '1,URDL,*,*,sxmo_inputhandler.sh downleft' \ + -g '1,DLUR,*,*,sxmo_inputhandler.sh upright' \ + -g '1,ULDR,*,*,sxmo_inputhandler.sh downright' \ -g '2,RL,*,*,sxmo_inputhandler.sh twoleft' \ -g '2,LR,*,*,sxmo_inputhandler.sh tworight' \ -g '2,DU,*,*,sxmo_inputhandler.sh twoup' \