There is a rawkeyDown handler in the stack script that intercepts CMD-f, so that I can put up an ask dialog instead of invoking the standard LC "Find and Replace..." stack. Simple:
Code: Select all
on rawKeyDown tKey
if the commandKey is down and tKey = 102 then --CMD-f
ask "Find:" with the lastFound of this stack
if the result = "cancel" then exit to top
set the lastFound of this stack to it -- preload the same text, to find again
find it
end if
end rawKeyDown
The menu "Edit" hilites every time, so I know something is getting through. I just do not know what. Anyone know what I am talking about?
Craig