Skip to content

OSK infrastructure#2803

Draft
leolost2605 wants to merge 14 commits into
mainfrom
leolost/on-screen-keyboard
Draft

OSK infrastructure#2803
leolost2605 wants to merge 14 commits into
mainfrom
leolost/on-screen-keyboard

Conversation

@leolost2605
Copy link
Copy Markdown
Member

@leolost2605 leolost2605 commented Mar 26, 2026

Based on #2793

Note: To test this you need to start an app with GTK_IM_MODULE=wayland

Todo:

  • There seems to be a bug where the osk sometimes doesn't get enabled?

Daemon:

  • Popup keys
  • icons for special buttons
  • Language selection -> follow up
  • Emoji selection -> follow up
  • IBus suggestions -> follow up

@leolost2605
Copy link
Copy Markdown
Member Author

leolost2605 commented Mar 26, 2026

This should be enough infrastructure for an initial osk:

Kooha-2026-03-26-18-20-52.mp4

@danirabbit @desiderantes any opinions/suggestions on design etc.? (I pinged you because I saw you talked about OSK in discord). If you have some ideas regarding structure/design/etc. that would be great!

If not I'll probably do it like GNOME does it so that we can also reuse their file format for keyboard layouts 🤷

@leolost2605 leolost2605 force-pushed the leolost/on-screen-keyboard branch 2 times, most recently from 8a760c6 to 2c54ea1 Compare March 26, 2026 20:53
@danirabbit
Copy link
Copy Markdown
Member

@leolost2605 being able to re-use layouts from an existing OSK sounds like a good idea to me! We can always revisit if for some reason it's too restrictive, but otherwise I like doing less work 😜

@leolost2605 leolost2605 force-pushed the leolost/on-screen-keyboard branch from 2c54ea1 to a963c68 Compare March 26, 2026 21:27
@desiderantes
Copy link
Copy Markdown

There's some wayland protocols for virtual keyboards that might be of interest ( I experimented implementing them, because I was playing with basing the logic on the Android keyboard). Mainly the one for virtual keyboard and maybe input v2

@leolost2605 leolost2605 force-pushed the leolost/on-screen-keyboard branch from a963c68 to a74d8f6 Compare April 7, 2026 22:34
@leolost2605
Copy link
Copy Markdown
Member Author

leolost2605 commented Apr 7, 2026

There's some wayland protocols for virtual keyboards that might be of interest ( I experimented implementing them, because I was playing with basing the logic on the Android keyboard). Mainly the one for virtual keyboard and maybe input v2

Thanks for the input! I don't think input v2 applies here. Also we have usually done any interaction with the compositor that doesn't involve actual surfaces via dbus so I would keep doing it via dbus in this case too.

@leolost2605 leolost2605 force-pushed the leolost/on-screen-keyboard branch 2 times, most recently from ab72774 to 5356643 Compare April 22, 2026 12:39
@leolost2605 leolost2605 force-pushed the leolost/on-screen-keyboard branch 2 times, most recently from 955ec4c to 0029961 Compare May 12, 2026 18:21
@danirabbit danirabbit added this to OS 9 May 12, 2026
@danirabbit danirabbit moved this to In progress in OS 9 May 12, 2026
@leolost2605 leolost2605 force-pushed the leolost/on-screen-keyboard branch 4 times, most recently from 521c92d to 517837b Compare May 20, 2026 11:11
@leolost2605 leolost2605 force-pushed the leolost/on-screen-keyboard branch from 517837b to 5aec68d Compare May 22, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

3 participants