OnClientPaste: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Client event}} | {{Client event}} | ||
__NOTOC__ | __NOTOC__ | ||
This event triggers when user paste whatever ('''CTRL + V'''). '''This event isn't | This event triggers when user paste whatever ('''CTRL + V'''). '''This event isn't triggered if menu or console is visible or if any browser is focused, or if cursor is invisible.''' | ||
==Parameters== | ==Parameters== | ||
<syntaxhighlight lang="lua">string clipboardText | <syntaxhighlight lang="lua">string clipboardText | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* '''clipboardText''': a [[string]] representing the pasted value from clipboard. | * '''clipboardText''': a [[string]] representing the pasted value from clipboard. | ||
==Source== | ==Source== |
Latest revision as of 17:02, 22 July 2021
This event triggers when user paste whatever (CTRL + V). This event isn't triggered if menu or console is visible or if any browser is focused, or if cursor is invisible.
Parameters
string clipboardText
- clipboardText: a string representing the pasted value from clipboard.
Source
The source of this event is the client's root element.
Example
Example show what player paste from clipboard.
addEventHandler("onClientPaste", root, function(text) outputChatBox("Clipboard value: "..text, 255,255,255) end)
See Also
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled