[Gambas-user] Paste into a textarea
Gianluigi
bagonergi at gmail.com
Tue Jan 28 09:20:23 CET 2020
Il giorno lun 27 gen 2020 alle ore 19:09 T Lee Davidson <
t.lee.davidson at gmail.com> ha scritto:
> There are two ways that text can be pasted. By keyboard (Ctrl-V) and by
> mouse (right-click, paste). Trapping the Ctrl-V key
> event is rather trivial. The only way I can think of off hand to trap a
> right-click & paste is to track and test for a certain
> sequence of events. A mouse paste would consist of a MouseDown event
> followed by a Change event (there is no MouseUp event on a
> right-click).
> ...
> Lee
>
I don't know why I tried to manage the paste event and my code is really
bad.
But here your right click management always works even when you don't paste
(Undo, Select all).
I think it would be better to overwrite the popup menu.
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200128/89f2d392/attachment.html>
More information about the User
mailing list