Just a note about the pastekey... I am on a windows machine, and I find that using the pastekey handler is not always perfect.
You can paste with either ctrl-C or with the insert button. I use a rawkeydown script instead of a pastekey script. With rawkeydown, I can test for either ctrl-C or the insert button. On 1/30/06, Ken Ray <[EMAIL PROTECTED]> wrote: > > On 1/30/06 8:56 PM, "Jim Ault" <[EMAIL PROTECTED]> wrote: > > > On 1/30/06 6:37 PM, "Ken Ray" <[EMAIL PROTECTED]> wrote: > >> > >> on pasteKey > >> put toUpper(the clipboardData["text"]) into the selection > >> end pasteKey > > > >> Simple, no? > > > > Cool, since they could only enter the clipboardData using the keyboard > to > > paste... or perhaps a mouse and a menu command, if paste is available. > > Would pasteKey catch the menu? > > No - you'd have to handle that in the Edit menu button script. I might > choose to use a custom property on the field to determine if it should be > all caps or not: > > on menuPick pChoice > if pChoice = "Paste" then > if the uCapsOnly of the selectedField is true then > put toUpper(the clipboardData["text"]) into the selection > else > put the clipboardData["text"] into the selection > end if > end if > end menuPick > > (Of course this would be longer with switch/case for more menu items other > than Paste, but you get the idea.) > > > Ken Ray > Sons of Thunder Software > Web site: http://www.sonsothunder.com/ > Email: [EMAIL PROTECTED] > > > _______________________________________________ > use-revolution mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
