This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ------------------------------------------------------------------------------- | |
-- TextBoxNoAutoCorrection.lua - native.newTextBox extension | |
-- with option to turn off auto-correction | |
-- ------------------------------------------------------------------------------- | |
local initialized, prevPosition, len = nil, 0, string.len | |
if not initialized then | |
local nativeNewTextBox = native.newTextBox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------------- | |
-- Example | |
--------------------------------------------------------------------------------- | |
local pb = require( "pasteboard" ) | |
pb.copy("Hello osx pasteboard") | |
print ( pb.paste() ) | |
pb.clear() |