Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Pasteboard plugin issue
Started by Lourenco Dec 15 2019 10:08 AM

No replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Lourenco

[GLOBAL: userInfoPane.html]
Lourenco
  • Contributor

  • 188 posts
  • Corona SDK

Good morning,

I have an issue with the pasteboard plugin. Is it intended to prevent doing copy/paste operations in the app?

Does not seem to work with native textbox. Or am I doing something wrong...

 

local pasteboard = require( "plugin.pasteboard" ) 

local screenW = display.contentWidth
local screenH = display.contentHeight

local messageTxtBox 

messageTxtBox = native.newTextBox (screenW / 2, 150, screenW - 20, 100) 
messageTxtBox.text = "Hello world!!!" 

pasteboard.setAllowedTypes( nil )

 

I can still copy and paste in the textbox.

 

Corona Build Version 2019.3556 (2019.11.25)

Device : Galaxy Tab S5e




[topic_controls]
[/topic_controls]