Hi everybody,
I'm trying to capture the action button press that dismisses the IME soft keyboard.
ime.AddHandleActionEvent is supposed to add an IME HandleAction event to the action button (in my case, "Done") but it's not working for me, my event handler doesn't trap it.
Does anybody see any problems with the code below?
Thanks...
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			I'm trying to capture the action button press that dismisses the IME soft keyboard.
ime.AddHandleActionEvent is supposed to add an IME HandleAction event to the action button (in my case, "Done") but it's not working for me, my event handler doesn't trap it.
Does anybody see any problems with the code below?
Thanks...
			
				B4X:
			
		
		
		Sub keypad_click
    Dim ime1 As IME
    ime1.AddHandleActionEvent(txt1)   
   
    'if there is text already entered then start with 2 blank lines to separate new from old
    If txt1.Text.Length>0 Then txt1.Text=txt1.Text&CRLF&CRLF
    txt1.SelectionStart=txt1.Text.Length'place cursor at end of existing text
   
    ime1.ShowKeyboard(txt1)
End Sub
Sub ime1_HandleAction As Boolean
    Log("ime1 -- Action key was pressed")
End Sub 
				 
 
		 
 
		 
 
		 
 
		 
 
		