https://bugs.kde.org/show_bug.cgi?id=502882

            Bug ID: 502882
           Summary: Feature request: support the virtual keyboard support
                    wayland protocol
    Classification: Plasma
           Product: kwin
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: tobias.b...@gmail.com
  Target Milestone: ---

SUMMARY

Waylands defines a virtual keyboard protocol (unstable)
https://wayland.app/protocols/virtual-keyboard-unstable-v1 that allows us to
programmatically type any UTF-8 sequence, including emoji etc… independently of
the input method. This protocol is supported by many compositor (sway,
hyprland, cosmic, niri, labwc, mir… and more), but Kwin does not implement it.
In practice, it means that tools like wlrctl or wtype (xdotool for wayland)
will return errors:

```
$ wtype ∇⋅∇ψ = ρ
Compositor does not support the virtual keyboard protocol
$ wlrctl keyboard type 'Hello, world!'
Virtual Keyboard interface not found!
```

It makes it hard to program accessibility programs, or play with tools like
kmonad or keyd to add keys to type emoji or arbitrary UTF-8 sequences (math,
chinese…). For now, one needs to rely on hacks, like using an XCompose file
(poorly support a huge number of files), the C-S-u functionality of ibus (not
supported in xim, and also the keycode of s changes when the keyboard layout
changes so it is not very stable),  or copy/pasting the emoji… very dirty in
any case.

STEPS TO REPRODUCE
1. Run `wtype ∇⋅∇ψ = ρ`. 

OBSERVED RESULT

Compositor does not support the virtual keyboard protocol

EXPECTED RESULT

∇⋅∇ψ = ρ should be typed.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: NixOS unstable
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to