Hi Peter,

> Am 01.06.2022 um 22:53 schrieb Peter Bogdanoff via use-livecode 
> <use-livecode@lists.runrev.com>:
> 
> Hi, I finding that after right-clicking in the field and then showing the 
> button popup menu, the focus is shifted to the menu. That’s good. However, if 
> there was text selected in the field that I want to copy or clear, the 
> selection is now lost since the focus was shifted.
> I can grab the selected characters before invoking the popup menu and then 
> reselect the original characters in the field to do the edit action. But that 
> seems to be kludge.
> Is there a better way to edit a selection in a field using a menu popup?

unfortunately the "traversalon" property of popup menu buttons is set to TRUE 
by default. 
This will "steal" the focus! :-/

Use the message box (prop is also missing in the inspector) to set it to FALSE 
and it will work as advertised.
...
set the traversalon of btn "your popup here..." to FALSE
...

> Peter

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to