Quick Links: Gideros Home | Download Gideros | Developer Guide
keyboard not showing in editable textArea?
  • pie +1 -1
    Member
    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 :)
    textAreaTest.zip
    4M
  • pie +1 -1 (+2 / -0 )
    Member
    solved it, txarea can't be local,
    I wonder how I didn't notice it in all this time.. I-)

    Likes: snooks, hgy29

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with OpenID

In this Discussion

  • pie September 14

Top Posters