On 21-04-18 05:08, Hiltjo Posthuma wrote:
> On Sun, Apr 18, 2021 at 04:26:05PM +0200, Max Schillinger wrote:
> > svkbd allows you to create keys for symbols of the second (=shift) layer by defining them with a modifier included, like:
> >
> > { "|", "|", XK_backslash, 1, XK_Shift_L },
> >
> > This key creates a pipe symbol by sending shift + backslash. But unfortunately, this way you can't emit get the original symbol (backslash) anymore. So you still need a separate key for typing a backslash, wasting precious space on the screen.
> >
> > The appended patch fixes this by allowing to neutralize the shift by tapping this key with shift. It works both by tapping first shift, then the pipe key on the on-screen keyboard, or by clicking the pipe key with the middle mouse button (assuming XK_Shift_L is set as the button 2 mod).
> >
> > This way you can create a "flipped" backslash/pipe key:
> >
> > { "|", "\\", XK_backslash, 1, XK_Shift_L },
> >
> > This patch works equally for AltGr symbols in a `de`-based layout. For example:
> >
> > { "~", "+", XK_plus, 1, XK_ISO_Level3_Shift },
> >
> > (In the German QWERTZ layout, you enter "~" with AltGr-"+".)
> >
> > Best regards,
>
> From the description it sounds useful to me.
>
> Any users of svkbd have opinions or objections about this patch? I don't use
> svkbd at the moment.
Thanks for the patch, I'll give it a try first in our sxmo context and will get back to you!
--
Maarten van Gompel (proycon)
https://proycon.anaproy.nl
Received on Fri Apr 23 2021 - 19:26:37 CEST