Code: Select all
on rawKeyDown pKey
if the environment <> "development" then pass rawKeyDown
if pKey = 118 then
if the commandKey is down or the controlKey is down then
put the clipboardData["text"] into tText
if tText <> "" then
if the selectedChunk <> "" then
put tText into the selectedChunk
end if
end if
else
pass rawKeyDown
end if
else
pass rawKeyDown
end if
end rawKeyDown
on pasteKey
put the clipBoardData["text"] into tText
if tText <> "" then
put the selectedChunk into tSelected
if tSelected <> "" then
put tText into the selectedChunk
end if
else
pass pasteKey
end if
end pasteKey