[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SendKeys() in Wayland


No , SendKeys is an X11 feature that wayland cannot do.

you will find many problems if you change to wayland.

Wayland is limited in many ways compared to X11....
Mostly because of over-bloated security (paranoia)

gb.DesktopX11 functions will NOT work.
Windows cannot be placed/moved by code.
No TrayIcon
Not sure if Clipboard.class works in wayland yet.
The list goes on.

Distros are recommending Wayland like they first recommended Gnome3
It really does not mean "It's better" and so many people did not like
gnome3 so MATE and Cinnamon began.

If you program for wayland in gambas you will have to change your way of
thinking about UI design. (that is waylands opinion)


Respects
BruceS


On Thu, 23 Jan 2025 at 04:49, Safiur Rahman <isafiur@xxxxxxxxx> wrote:

> Hi
>
> A lot of distributions are now recommending Wayland, especially Ubuntu.
> However, Wayland component in gambas has no support for Desktop.SendKeys()
> yet.
>
> We have been using SendKeys extensively to allow user press Return key to
> move the cursor to the next control (eg TextBox). How can this be achieved
> in Wayland?
>
> I am using following code:
>
>   If Key.Code = Key.Return Or If Key.Code = Key.Enter Or If Key.Code =
> Key.AltKey Then
>     If Application.ActiveControl
>         Desktop.SendKeys("\t")
>     Endif
>   Endif
>
> --
> Regards
> Safiur Rahman
>

References:
SendKeys() in WaylandSafiur Rahman <isafiur@xxxxxxxxx>