×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    keyboard for touch input not coming up

    Hi,

    I am using the following code to open the touch input keyboard but its not coming up. Nothing happens. Am I missing something while doing this?

    Code:
    		        iEditor_Username->SetFocus(ETrue);
                            iEditor_Username->HandlePointerEventL(aPointerEvent);
    			MCoeFepAwareTextEditor_Extension1 * extension1 = iEditor_Username->InputCapabilities().FepAwareTextEditor()->Extension1();
    			CAknEdwinState * aknEdwinState = static_cast<CAknEdwinState *> (extension1->State(KNullUid));
    			aknEdwinState->ReportAknEdStateEventL(MAknEdStateObserver::EAknEdwinStateInputModeUpdate);
    			CCoeControl::HandlePointerEventL(aPointerEvent);
    Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: keyboard for touch input not coming up

    Wiki appears to have alternative you could try: http://www.developer.nokia.com/Commu...B_in_CEikEdwin

  3. #3
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,985

    Re: keyboard for touch input not coming up

    It should pop-up by itself , when clicking on text editor field. For eg:

    Code:
    void CClassContainer::HandlePointerEventL(const TPointerEvent& aPointerEvent)
    	{	
    		switch (aPointerEvent.iType)
    			{
    			case TPointerEvent::EButton1Down:
    				{
    				iClickDownPosition = aPointerEvent.iPosition;
    
    				if (iRectSearchBoxEditor.Contains(iClickDownPosition))  // a rect which contains editor
    					{
    					iEditor_Username->SetFocus(ETrue);
    					}
    
    				else
    					iEditor_Username->SetFocus(EFalse);
    
    				}
    				break;
    }
    		CCoeControl::HandlePointerEventL(aPointerEvent);	
    		DrawNow();
    }

  4. #4
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Re: keyboard for touch input not coming up

    thats what i am doing vineet. here is the full code:

    As of now i am not calculating the exact position of editor rect. i want to launch VKB on touching anywhere on the screen.

    Code:
    void CNymgoTouchLoginContainer::HandlePointerEventL(const TPointerEvent& aPointerEvent)
    	{
    	switch(aPointerEvent.iType)
    		{
    		case TPointerEvent::EButton1Up:
    			{			
    			iEditor_Username->SetFocus(ETrue, EDrawNow);			
    			iEditor_Username->HandlePointerEventL(aPointerEvent);
    			MCoeFepAwareTextEditor_Extension1 * extension1 = iEditor_Username->InputCapabilities().FepAwareTextEditor()->Extension1();
    			CAknEdwinState * aknEdwinState = static_cast<CAknEdwinState *> (extension1->State(KNullUid));
    			aknEdwinState->ReportAknEdStateEventL(MAknEdStateObserver::EAknActivatePenInputRequest);
    			CCoeControl::HandlePointerEventL(aPointerEvent);  	
    		
    		default:
    		    CCoeControl::HandlePointerEventL(aPointerEvent);
    		}
    	}
    Did i miss something here?

  5. #5
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,985

    Re: keyboard for touch input not coming up

    Already added this container on the control stack?

  6. #6
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Re: keyboard for touch input not coming up

    you got that right. had added but was commented :P ...working now...

    thanks

  7. #7
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Re: keyboard for touch input not coming up

    another issue now.

    the VKB comes up and i can input the characters as well but not deleting the characters.

    i mean can't erase what i typed. anything else to do? i did it previously on 3rd edition and i remember nothing else was required. VKB handled all by itself once appeared on screen.

  8. #8
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,985

    Re: keyboard for touch input not coming up

    Implement OfferKeyEvent() as well along with HandlePointerEventL(), calling inside it the offerkeyeventL() for editor.

  9. #9
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Re: keyboard for touch input not coming up

    yes that worked

Similar Threads

  1. nokia e7 touch screen + keyboard at the same time
    By jesusgollonet in forum General Development Questions
    Replies: 5
    Last Post: 2010-12-02, 19:20
  2. Canvas Numpad Keyboard for Touch Devices
    By carsamba55 in forum Mobile Java General
    Replies: 0
    Last Post: 2010-11-15, 20:16
  3. A Canvas Qwerty Keyboard For Touch Devices
    By j2me_beginner in forum Mobile Java General
    Replies: 2
    Last Post: 2009-10-02, 13:42
  4. [Moved] Using iPod Touch Keyboard
    By darmj003 in forum General Development Questions
    Replies: 3
    Last Post: 2008-06-27, 12:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×