[Gambas-user] middle mouse paste

Bruce Steers bsteers4 at gmail.com
Wed Dec 28 00:43:31 CET 2022


On Tue, 27 Dec 2022 at 21:23, Benoit Minisini <
benoit.minisini at gambas-basic.org> wrote:

> Le 27/12/2022 à 19:57, Bruce Steers a écrit :
> >
> > So it pastes regardless of any desktop settings.
> > I've added an option in my ide for now as it is infuriating.
> >
> https://gitlab.com/bsteers4/gambas/-/commit/576e0d8ada2264fec19754d85e5db58784b58144
> <
> https://gitlab.com/bsteers4/gambas/-/commit/576e0d8ada2264fec19754d85e5db58784b58144
> >
> > (plus the next commit to fix accidentally modified code)
> >
> > Respects
> > BruceS
> >
>
> It's partially solved in the last commits.
>
> GTK+ has a global desktop property for middle click paste that is taken
> into account by GTK+ components at application startup.
>
> But QT does not have an equivalent. So you have to clear the
> Application.MiddleClickPaste yourself to have the same effect, and at
> the moment the native Qt controls do not take the property into account.
>
> Regards,
>
> --
> Benoît Minisini.
>

Excellent, thank you kind sir :)
I think a lot of applications including big ones like firefox have their
own middle click option, possibly because there's not a reliable way to get
the setting on all systems?

The change works great for me, no more middle click mishaps in the IDE now.
Thanks again :)
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221227/318cdd80/attachment-0001.htm>


More information about the User mailing list