Information "test"
Roger Guay
irog at mac.com
Wed Nov 7 22:13:47 EST 2012
Thanks Jacque, Richard and Mark for your responses. Here is the code I'm using:
on controlKeyDown whichKey ---- from Jacqueline Landman Gay
if ("editor field" is not in the name of the target and "script" is not in the name of the target) \
or the shiftkey is not down
then pass controlKeyDown
switch whichKey
case quote
case "'"
put quote & the selection & quote into the selection
break
case "v" -- paste only plain text
put the clipboardData["text"] into the selection
break
case "9"
case "0"
case "("
case ")"
put "(" & the selection & ")" into the selection
break
case "["
case "]"
case "{"
case "}"
get the selection
put "[" & it & "]" into the selection
if it = "" then
put the selectedchunk into tSel
put word 4 of tSel into word 2 of tSel
put (word 4 of tSel) - 1 into word 4 of tSel
select tSel
end if
break
case " " -- scriptPaint
put the mousetext into the selection
break
default
pass controlKeyDown
end switch
setEditorDirty
end controlKeyDown
private command setEditorDirty
type space
delete char (word 4 of the selectedchunk) of the target
end setEditorDirty
Note that I'm using ControlKey instead of commandKey but otherwise unchanged from what Jacque had posted. And yes, the only things that appear are the 'i" icon and the word "test". I'll work on getting a copy of BBEdit and do as you suggest, Jacque.
Thanks again,
Roger
On Nov 7, 2012, at 6:38 PM, "J. Landman Gay" <jacque at hyperactivesw.com> wrote:
> On 11/7/12 8:20 PM, Richard Gaskin wrote:
>> Roger Guay wrote:
>> > Yes, It's the answer dialog, and all I'm doing is inserting a front
>> > script (Jacque's commandKeyDown frontScript that allows for script
>> > insertion of quotes, parenthesis etc.). The frontScript resides and
>> > is called from a subStack of a plugin. This dialog appears only
>> > sometime, and I can't figure out any other contributing factors.
>>
>> I've used frontScripts, frequently from plugins, and have never seen this.
>>
>> Can you post the code which triggers this?
>
> Ditto please. I've never seen it either. @Roger, I've been using my frontscript for about 15 years, did you change any of it?
>
> Also, is that the whole dialog? Just "test" and nothing else?
>
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
>
> _______________________________________________
> 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