Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
keyboard not showing in editable textArea? — Gideros Forum

keyboard not showing in editable textArea?

piepie Member
edited September 2017 in Plugins
Hi, the issue is as the title says:
I had a working textArea in my project and I dedicated myself to other app parts.
Suddenly I noticed that when I touch the textArea the keyboard is no longer showing up on my phone, while the cursor is there blinking.

On my laptop the keyboard never showed up, but I think it is expected since I have a physical keyboard there - which was (and still is) working properly with textArea.

Extracting the relative code in another project the issue persists, but I don't see any error in this code (project attached) do you?
 
TextArea.setKeyboardFonts{
	TTFont.new("NotoSans.ttf", 100)
}
 
TextArea.setKeyboardSounds{
	Sound.new("Keypress.wav")
}
 
TextArea.setKeyboardLayouts(require "kblayouts", 10)
 
application:setKeepAwake(true)
swidth = application:getLogicalWidth()
sheight = application:getLogicalHeight()
 
local chars = {}
for code = 1, 2048 do chars[#chars+1] = utf8.char(code) end
font = TTFont.new("NotoSans.ttf", 30, table.concat(chars))
 
local callback = function(self, escape)
	print("escape:", escape, ", text:", self.text)
end
 
 
local txarea = TextArea.new{
	font        = font,
	text        = "",
	sample      = "qP|", 
	align       = "L",
	width       = swidth*0.98,
	height      = 0.1 * sheight,
	letterspace = 0,
	linespace   = 5,
	color       = 0x000000,
	wholewords  = false,
	oneline     = true,
	maxchars    = 27,
	undolevels  = 10,
	curwidth    = 2,
	curcolor    = 0x333333,
	curalpha    = 1,
	selcolor    = 0xffffff,
	selalpha    = 0.25,
	sldwidth    = 4,
	sldcolor    = 0x882222,
	sldalpha    = 0.5,
	edit        = true,
	scroll      = false,
	callback    = callback,
}
 
stage:addChild(txarea)

running the project, the textArea is a single line at the top of the screen (portrait)

thank you :)

Comments

Sign In or Register to comment.