|
|
|
Copy Keydown Script
Added on 10/2/2000
|
|
Compatibilities:
Required Xtras:
Buddy API
|
This item has not yet been rated
|
Copies selected text with ctrl+c
global startChar, endChar, currentField
on keyDown me
if currentField <> void then
if the key = "c" and the commandDown then
copySelected()
dontpassevent
alert "copy"
else
pass
end if
end if
end
on copySelected me
if startChar < endChar then
theSelection = currentField.char[startChar..endChar]
else
theSelection = currentField.char[endChar..startChar]
end if
thetext = theSelection
baCopyText(thetext)
end
|
|