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

Re: SendKeys() in Wayland


>
> 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
>
>
Maybe this works?
Application.ActiveControl.Next.SetFocus


Jussi

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