[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SendKeys() in Wayland
[Thread Prev] | [Thread Next]
- Subject: Re: SendKeys() in Wayland
- From: Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx>
- Date: Fri, 24 Jan 2025 00:29:15 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
> > 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
SendKeys() in Wayland | Safiur Rahman <isafiur@xxxxxxxxx> |