-
-
Notifications
You must be signed in to change notification settings - Fork 250
Description
Thanks for great app!
I'm making custom layouts with lots of letters and words assigned to swipes.
I want to apply custom modification for swipe-backs (swiping away from center of a key and then back to the center - the gesture that converts "<" into "«" in demo).
In this sample
<keyboard name="test_backswipe" script="test">
<row>
<key c="x" se="y" />
<key c="z" se="ttt" />
</row>
<modmap>
<fn a="y" b="foo" />
<fn a="ttt" b="bar" />
</modmap>
</keyboard>
I expect that swiping from and back the "x" key will give me "foo" and the same for "z" key gives "bar" but instead I got "Y" and "Ttt" (capitalized first letter) as if I pressed Shift
and swiped in just one direction. Pressing Fn
button works as I want but I'd like swipeback to work too.
As I understand if Shift
modifier is applicable to the value of nw
...se
attribute then it is used, not Fn
. I suppose this is the intended behavior to enable quick capitalization. So if I try
<shift a="y" b="y" />
<shift a="ttt" b="ttt" />
or even
<shift a="y" b="foo" />
<shift a="ttt" b="bar" />
then swipebacks give "foo" and "bar" but now I can't get capital "Y".
What I propose is to add a completely new modifier for swipebacks. For example call it swpb
:
<swpb a="y" b="foo" />
If it is present for the value of nw
...se
then it can be applied first and then Shift
and Fn
may be applied to the result if they are active.
If it is not present then app keeps current behavior.
Thanks for considering this request!