Native Keyboard Won't Dissappear

Hey guys,
I feel like this has got to be a simple mistake but I can’t seem to figure it out. I’ve created a native text field with the code numericGallons = native.newTextField( 120, 160, 110, 36, GallonsEntered ) numericGallons.inputType = "number" And for some reason I can’t seem to get the native keyboard to dismiss. I’ve tried creating a listener on my background object so that a “tap” would make it dissappear. I’ve also tried creating a submit button. After setting the image in its place I created this function function submit:tap(event) native.setKeyboardFocus( nil ) end And still no luck.

Any help would be greatly appreciated.

Thanks

Alex [import]uid: 139917 topic_id: 26598 reply_id: 326598[/import]

Okay, so I was able to get the keyboard to dismiss using the following code. [code]–Create Submit Button

local submit= display.newImage(“Images/Tab Bar Icons/mypooltrans.png”)
submit.x = display.contentWidth-150
submit.y = display.contentHeight-250
submit:scale( .70, .70 )

–Submit Button Functionality
function submit:tap(event)
native.setKeyboardFocus( nil )
end

–Submit Listener
submit:addEventListener( “tap”, submit)[/code]

Is there a reason why the names must remain the same throughout for the code to execute? [import]uid: 139917 topic_id: 26598 reply_id: 107820[/import]