PINE64
OnKey onscreen keyboard - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127)
+--- Thread: OnKey onscreen keyboard (/showthread.php?tid=12274)

Pages: 1 2


OnKey onscreen keyboard - jack1 - 11-22-2020

Hi, i made this lightweight onscreen keyboard for the pinephone (for Xorg) becuse i couldn't find a good one. Try it ! OnKey
idk if it works on xwayland...

Exclamation  It moved to:
https://codeberg.org/jackc/OnKey
Exclamation


RE: OnKey onscreen keyboard - barray - 11-23-2020

I was looking into doing something similar myself, nice work. I'm personally looking to just use X11 and not rely on gtk (it'll look less clean, but should be more performant).

For an advanced feature, the other thing you may want to consider is a "typing" mode that offers spelling corrections. Also would be great if you could load a character profile for different languages.

One note about the code, is your space bar and tab key broken? Big Grin The indentation is awful! Haha https://github.com/jackghg/OnKey/blob/main/onkey.c

Btw, isn't an additional limitation that it's designed for single display use?


RE: OnKey onscreen keyboard - jack1 - 11-23-2020

(11-23-2020, 10:20 AM)barray Wrote: I was...
Thanks! no, i dont want spell check. character profile, yes id like, maybe 2 or 3 profiles... that would increase a bit the ram... about multi display, on a portable device, if it has more than one display, the keyboard goes on the main one. A desktop has a keyboard... well some tablet could have 2 display... may be in future.

I made an issue!


RE: OnKey onscreen keyboard - barray - 11-23-2020

(11-23-2020, 02:30 PM)jack1 Wrote:
(11-23-2020, 10:20 AM)barray Wrote: I was...
Thanks! no, i dont want spell check. character profile, yes id like, maybe 2 or 3 profiles... that would increase a bit the ram... about multi display, on a portable device, if it has more than one display, the keyboard goes on the main one. A desktop has a keyboard... well some tablet could have 2 display... may be in future.

I made an issue!

About profiles, I would suggest loading from a configuration file. That way people can change other settings, like colours, fonts, etc. You would only load the relevant configuration into RAM, then close the file. I made a single file include for a basic JSON parser that might be interesting for you: https://github.com/danielbarry/JSON/blob/master/json.hh

Regarding displays, many devices have external display support, so it's worth testing how well it works Smile


RE: OnKey onscreen keyboard - jack1 - 11-24-2020

(11-23-2020, 04:37 PM)barray Wrote: ...
Barry, i must share this keyboard that a guy on reddit told me... https://tools.suckless.org/x/svkbd/
Doesnt use gtk, he says...


RE: OnKey onscreen keyboard - barray - 11-25-2020

Yeah just looking at the source files, it does indeed seem to be good: https://git.suckless.org/svkbd/files.html

I have some other very unique requirements too that are specific to the way the window manager code works, I'll have to test it and see how well it holds up. Thanks for the info!


RE: OnKey onscreen keyboard - olidajin - 12-11-2020

(11-23-2020, 02:30 PM)jack1 Wrote:
(11-23-2020, 10:20 AM)barray Wrote: I was...
Thanks! no, i dont want spell check. character profile, yes id like, maybe 2 or 3 profiles... that would increase a bit the ram... about multi display, on a portable device, if it has more than one display, the keyboard goes on the main one. A desktop has a keyboard... well some tablet could have 2 display... may be in future.

I made an issue!
Do you really have this intention klingeltöne in future?  Rolleyes


RE: OnKey onscreen keyboard - olidajin - 12-11-2020

great, thanks for sharing


RE: OnKey onscreen keyboard - jack1 - 01-05-2021

(12-11-2020, 03:24 AM)olidajin Wrote: Do you really have this intention klingeltöne in future?  Rolleyes
You mean the multi screen thing ?
I was thinking... you can simply set as default the screen you want to show the keyboard


RE: OnKey onscreen keyboard - Dulisier - 01-19-2021

Thank you for your recommendation. I happened to be learning this one, thank you very much.