to catch the keystroke without On Event Call: you could put an invisible button on the form(s) with cntrl-v as the activator, then use Get Text From Pasteboard, and insert it at the current cursor position
Im not sure if you can catch the contextual menu, but maybe: with some imaginative use On Mouse Down, selected menu item you cold catch the paste action that way too, then use Get Text from Pasteboard Chip On Wed, 7 Aug 2019 10:51:45 -0700, William Swann via 4D_Tech wrote: > Hi All, > > I am having a problem with pasting into text fields or variables on > input forms under Windows. The user clicks into or highlights a text > area that is already populated. They press either ctrl-v or select > paste from the area's contextual menu. The entire existing text block > is replaced with only the new text new from the paste event, even > though they clicked into a specific point to paste into. This only > happens under Windows 7 or 10. Mac clients have never reported this > error/problem at all. I have seen it happen while watching users do > their work and there it is not a PEBCAK issue (_p_roblem _e_xists > _b_etween _c_hair _a_nd _k_eyboard). > > I have toyed a bit with On Event Call and trapping for ctrl-v events > and creating a text pasting strategy, but this seems dangerous, > especially on a "system" related event that is better handled by 4D > and the host OS. The other trepidation is that the On Event Call is > run in a completely different process, adding to the complexity of a > solution to trap the event and get the selection from the process > containing the text field. Further, I cannot figure out how to trap > for the context menu paste event. > > We are using v14.6 for server and client. > > We are moving the system to a more modern version of 4D in a couple > of months, but I need to find a fix or workaround until we can get > there... Has anyone seen this? It truly is frustrating. > > HELP and thanks! > > Bill Swann > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** --------------- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

