Commit Graph
466 Commits
Author SHA1 Message Date
Devin Lin 48d38c6bea Introduce virtual keyboard input engine and layout framework
This is the first step in
https://invent.kde.org/plasma/plasma-keyboard/-/merge_requests/109
(please see it for context and rationale), and
introduces a basic input engine and layout framework.

The virtual keyboard library and engine are in /virtualkeyboard:
- /virtualkeyboard/components - QML components for building keyboard layouts and the keyboard itself
- /virtualkeyboard/inputbackend.h - generic input "backend" for sending events from the vkbd, currently just for input-method-v1 but could be for xdg-remote-desktop?
- /virtualkeyboard/inputengine.h - internal input method "state"
- /virtualkeyboard/keyboardcontroller.h - internal virtual keyboard panel "state"
- /virtualkeyboard/keyboardpackageresolver.h - utilities to find and parse keyboard "layout packages"
- /virtualkeyboard/textcomposers/abstracttextcomposer.h - abstract interface that implements event handling from the keyboard layout and talks to InputEngine for the final "text" (needed for CJK, text prediction)
- /virtualkeyboard/textcomposers/directtextcomposer.h - directly enters text (enough for most layouts)

For an example keyboard package (not included in this MR), please see https://invent.kde.org/plasma/plasma-keyboard/-/tree/e8e33ef2103c545decaed556a43907349e789fb8/layouts/en (shared layouts in https://invent.kde.org/plasma/plasma-keyboard/-/tree/e8e33ef2103c545decaed556a43907349e789fb8/layouts/defaultplugin)
- Metadata is in metadata.json, which lists the locales the package is
  meant for, and what layouts it provides
- Each keyboard layout has predefined "required" layouts: main, symbols,
  digits, numbers and dialpad
- Each keyboard layout can define which form factors to show up for (ex.
  desktop ones won't show up in the mobile kcm keyboard selector by default)
2026-09-22 23:51:19 -04:00
l10n daemon script 59402913f8 GIT_SILENT Sync po/docbooks with svn 2026-09-20 01:53:44 +00:00
Philipp Kiemle b6efde9946 Add plural to translatable string 2026-09-19 14:42:27 +02:00
l10n daemon script 7f1f70e457 GIT_SILENT Sync po/docbooks with svn 2026-09-19 01:51:08 +00:00
l10n daemon script f43bed9ae0 GIT_SILENT Sync po/docbooks with svn 2026-09-18 01:51:08 +00:00
l10n daemon script d5a4faa912 GIT_SILENT Sync po/docbooks with svn 2026-09-17 01:52:23 +00:00
Tobias Ozór e83b6c9d75 kcm: Port away from singleton config instance
In the current implementation, the 'Defaults' button has no
functionality, and when settings are changed back to the last saved
state without using the 'Reset' button, the 'Apply' and 'Reset'
buttons don't get disabled again as they should. Additionally the
KConfigXT documentation states that singleton config instances
shouldn't be used in KCMs.
2026-09-16 14:52:16 -04:00
User8395 7374b71c08 kcm: improve ui and add setting for alternate characters and hold key popup
Before:

![image](/uploads/40f829d5298150dfa31bc37d988b8c05/image.png){width=900 height=563}

After:

![image](/uploads/67fb8765b09dc0098df91f185fe9583b/image.png){width=900 height=563}
2026-09-15 21:07:52 -04:00
Bhushan Shah db5bf58bbd Update version for new release 6.8.80 2026-09-14 18:04:45 +05:30
Bhushan Shah 288ce6d76d Update version for new release 6.8.90 2026-09-14 15:58:34 +05:30
Bhushan Shah f2df71891a Update version for new release 6.7.90 v6.7.90 2026-09-10 14:37:11 +05:30
Bhushan Shah 532af09c12 Update version for new release 6.7.90 2026-09-10 14:07:53 +05:30
Bhushan Shah bd1819c6fc Update Qt version requirement to 6.11.0
GIT_SILENT
2026-09-10 13:20:51 +05:30
Bhushan Shah 5a11fbd646 Update Frameworks version requirement to 6.30.0
GIT_SILENT
2026-09-10 13:20:51 +05:30
l10n daemon script b687dd25a4 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-09-08 01:44:35 +00:00
Jakob Petsovits bfea2e618d kcm: Add missing Qt::Qml link 2026-09-07 14:05:32 -04:00
l10n daemon script 1ba3e921ea GIT_SILENT Sync po/docbooks with svn 2026-09-06 02:23:09 +00:00
l10n daemon script 006c077995 GIT_SILENT Sync po/docbooks with svn 2026-09-03 02:19:45 +00:00
l10n daemon script a22a6f8227 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-08-26 01:48:11 +00:00
l10n daemon script 6d64d99b7f SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-08-19 01:44:15 +00:00
l10n daemon script 9fa051be1c GIT_SILENT Sync po/docbooks with svn 2026-08-18 01:55:47 +00:00
l10n daemon script cc90c18d07 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-08-16 01:42:27 +00:00
Laurent Montel 690d8d88f0 GIT_SILENT: Bump kf ecm_set_disabled_deprecation_versions. Make sure that it compiles fine without kf 6.29 deprecated methods 2026-08-12 07:08:24 +02:00
Kristen McWilliam fc5aabab25 fix: don't be a zombie if the connection to the compositor is lost
Previously if the connection to the compositor was lost, we would just
continue running while being unable to do any input method work.

This was problematic for the flatpak installation of plasma-keyboard,
which could even accumulate multiple running instances if toggled on/off
in the KCM repeatedly.

Resolves https://invent.kde.org/plasma/plasma-keyboard/-/work_items/85
2026-08-04 14:56:41 -04:00
Kristen McWilliam 0510688147 refactor(InputMethod): rename m_current for clarity & not shadowing
`inputMethod->activeContext()` is clearer than `inputMethod->current()`,
and we avoid using `isActive()` which shadows the `isActive()` method of
`QWaylandClientExtension`.
2026-08-04 14:49:33 -04:00
l10n daemon script 7a9127c49a GIT_SILENT Sync po/docbooks with svn 2026-08-02 02:09:55 +00:00
Nicolas Fella bb08c54614 Fix type name in kcfg file 2026-07-27 12:38:13 +02:00
Nicolas Fella 006de34598 Install kcfg file
So that it can be picked up by tooling
2026-07-27 12:32:20 +02:00
l10n daemon script 325e7cb61c GIT_SILENT Sync po/docbooks with svn 2026-07-27 02:15:10 +00:00
l10n daemon script b121cb2e8b SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-07-27 01:41:58 +00:00
l10n daemon script 8c1bfa7b86 GIT_SILENT made messages (after extraction) 2026-07-27 00:47:23 +00:00
l10n daemon script 682b42e6a7 GIT_SILENT Sync po/docbooks with svn 2026-07-26 01:49:15 +00:00
l10n daemon script 6781662735 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-07-24 01:40:00 +00:00
l10n daemon script c0013cb6b9 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-07-19 01:41:27 +00:00
Justin Zobel 4dbbf78d24 CI - Flatpak - Update Runtime to 6.11 2026-07-16 17:40:45 +09:30
l10n daemon script 160132364c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-07-15 01:41:17 +00:00
l10n daemon script db304d181e SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-07-14 01:40:01 +00:00
Kristen McWilliam ecaeeda4d5 fix(overlay): ensure state is reset when key repeat is finished
Without resetting the state properly strange things happen, like the
base key summoning the overlay from a normal press/release.
2026-07-13 17:43:47 -04:00
l10n daemon script b12aecabc5 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-07-12 01:38:42 +00:00
Kristen McWilliam 45ba789337 docs: Add comprehensive info for how to develop and run the project
Lowers the barrier for entry for new contributors by providing detailed
instructions on how to get started with the project.
2026-07-10 11:43:24 -04:00
Kristen McWilliam f0e6d834b3 test: prevent flaky tests by draining stale events/responses 2026-07-10 11:04:58 -04:00
Levente Pál Szíjártó ced0f8d1bc feat(diacritics): Add closing Hungarian quotation mark
Added low quotation mark and swapped guillemets

### Reason for the change

Hungarian uses the following quotation marks (with nesting): „ » « ”

The starting quotation mark was missing, so I added it. The inner quotation marks are also in the opposite order on the base layout, so I added an override for them.

I left the American English opening quotation mark in place, as I feel like it might be confusing if it was demoted to be behind the closing quotation mark.

### Test plan

I'm new to contributing to KDE and I haven't been able to test this. Sorry about that. I did build, install, and reboot, but could observe no changes. If someone else has a clue about what I might be doing wrong, please help.

Either way, you should be able to see the changed list after holding down the " key.

- Before: “ ” « »
- After: “ „ ” » «

### Bugs fixed

BUG: 522221
2026-07-09 13:33:31 -04:00
l10n daemon script e2b571c37a SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-07-09 01:41:52 +00:00
l10n daemon script a87ab4c26d GIT_SILENT Sync po/docbooks with svn 2026-07-07 01:48:35 +00:00
l10n daemon script 50b9c56d38 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-07-07 01:38:46 +00:00
Kristen McWilliam 18fc775264 fix: Increase the default delay before showing long-press diacritics
Since 6.7 there have been more people using the feature, and several
complaining that it pops up when they are just typing.

Lets assume that most people are much more slow and hesitant at typing
than us techies, and increase the default delay to 600ms; the same that
the key repeat delay is set to by default.

This should fix the accidental overlays for most people, and anyone who
uses it regularly can still easily change the setting to a lower value
if they prefer.
2026-07-06 11:56:14 -04:00
Kristen McWilliam 9c1407d388 fix: React to diacritics overlay delay changes immediately
Prior to this change the newly chosen delay wouldn't take effect until
the plasma-keyboard process was restarted.
2026-07-06 11:29:20 -04:00
l10n daemon script f48f774d95 GIT_SILENT Sync po/docbooks with svn 2026-07-06 02:01:44 +00:00
l10n daemon script 0da6ce879e SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-07-06 01:41:24 +00:00
l10n daemon script 280b341ac9 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-07-05 01:39:44 +00:00