How to make keyboard always show?

I’m making a game where you have to type stuff into a chatbox and wait for a response, but I want to have it so that when the user hits “enter” (or “done” on the nook) the keyboard doesn’t disappear. Pretty much I need the keyboard to be constantly visible. By default, if a user taps on a textField the keyboard shows up and then when they hit enter, it goes away. I put this line of code after I create the textBox:

native.setKeyboardFocus(chatbox)

but that just does makes the keyboard display once and then once the user hits “enter” the keyboard goes away. I also tried making it so that whenever the chatbox event is “submitted” or “ended” it sets the keyboard focus, but that didn’t work. Here’s what my code is currently, any help would be appreciated!

[code]
chatbox = native.newTextField( 124, 910, display.contentWidth - 150, 90, function(event)
– Only send when the user is ready.
if not (event.phase == “ended” or event.phase == “submitted”) then
native.setKeyboardFocus(chatbox)
print(“hi”)
end
if event.phase == “editing” then
print(“hi”)
end

– Don’t send Empyt Message
if chatbox.text == ‘’ then return end

text = username…": "…chatbox.text

send_a_message(tostring(text))
chatbox.text = ‘’
–native.setKeyboardFocus(nil)
end )
[/code] [import]uid: 14461 topic_id: 32722 reply_id: 332722[/import]

In the last Corona public build (or maybe it was the one before), they changed the “return” button to a “done” button. Something to do with keeping the events the same across all devices. Unfortunately a “done” button will always make the keyboard disappear after you press it. No good way around it, as far as I know.

For my game, I also needed to keep the keyboard up after the user hit the return key, so I ended up just creating my own keyboard. This had all kinds of other advantages and was actually pretty easy to do.
[import]uid: 94868 topic_id: 32722 reply_id: 130144[/import]

In the last Corona public build (or maybe it was the one before), they changed the “return” button to a “done” button. Something to do with keeping the events the same across all devices. Unfortunately a “done” button will always make the keyboard disappear after you press it. No good way around it, as far as I know.

For my game, I also needed to keep the keyboard up after the user hit the return key, so I ended up just creating my own keyboard. This had all kinds of other advantages and was actually pretty easy to do.
[import]uid: 94868 topic_id: 32722 reply_id: 130144[/import]

I was thinking about doing that but I’m not very good at making graphics and I think the keys would look kinda bad, what did you use to make the key images? [import]uid: 14461 topic_id: 32722 reply_id: 130209[/import]

I was thinking about doing that but I’m not very good at making graphics and I think the keys would look kinda bad, what did you use to make the key images? [import]uid: 14461 topic_id: 32722 reply_id: 130209[/import]

I used Adobe Illustrator. There were three different button shapes (one for letters, one for the spacebar and one for return and delete keys) and then of course I had to make each letter. Then I combined them all into a keyboard within my code with just a basic display.newRect() for the keyboard background.

Thinking about it some more, my scenario was a little easier than yours. My game only has the user typing in answers to clues. So I only needed English letters and no punctuation. I only needed 26 letters, the space bar, Enter and Delete.

[import]uid: 94868 topic_id: 32722 reply_id: 130243[/import]

I used Adobe Illustrator. There were three different button shapes (one for letters, one for the spacebar and one for return and delete keys) and then of course I had to make each letter. Then I combined them all into a keyboard within my code with just a basic display.newRect() for the keyboard background.

Thinking about it some more, my scenario was a little easier than yours. My game only has the user typing in answers to clues. So I only needed English letters and no punctuation. I only needed 26 letters, the space bar, Enter and Delete.

[import]uid: 94868 topic_id: 32722 reply_id: 130243[/import]

Yea I guess the only extras I would need are punctuation, but do you know of any good tutorials that show how to make nice keys in illustrator?

EDIT: I actually just found this one, its not the best but I think I can tweek it a bit to look better http://vector.tutsplus.com/tutorials/illustration/keyboard-button-illustration/ [import]uid: 14461 topic_id: 32722 reply_id: 130261[/import]

Yea I guess the only extras I would need are punctuation, but do you know of any good tutorials that show how to make nice keys in illustrator?

EDIT: I actually just found this one, its not the best but I think I can tweek it a bit to look better http://vector.tutsplus.com/tutorials/illustration/keyboard-button-illustration/ [import]uid: 14461 topic_id: 32722 reply_id: 130261[/import]