How to paste into a form element in the browser widget

Tore Nilsen tore.nilsen at me.com
Tue Dec 14 07:07:39 EST 2021


Ah, I see! Wel,l back to redesigning the whole application to include the menus then. Thanks!

Best Regards
Tore

> 14. des. 2021 kl. 13:04 skrev Mark Waddingham via use-livecode <use-livecode at lists.runrev.com>:
> 
> On 2021-12-14 11:41, Tore Nilsen via use-livecode wrote:
>> I have a problem pasting into a form element on a web page in the
>> browser widget. This works well in the IDE, but not in a standalone
>> application. The application has no menus, but I have included a
>> pasteKey script to handle paste shortcuts. This does not seem to do
>> the trick in the browser widget. I have tried to put the script in the
>> stack script, the card script and even in the widget itself, although
>> I wouldn’t expect the latter to work. Are there anyone who has run
>> across this problem before and may offer a solution?
> 
> I think you'll need to include an Edit menu with the normal shortcuts (Cut/Copy/Paste) - make sure the tag of the items is correct as the engine uses those to map them to the internal (Cocoa) references. e.g.
> 
>  (Cu&t /X|cut
>  (&Copy /C|copy
>  (&Paste /V|paste
> 
> Cocoa-based controls (which the browser widget uses the WebView variant of) don't respond to shortcuts directly, but only via menu item accelerators - so the browser widget needs the menu items present for such shortcuts to work.
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list