Project

General

Profile

Defect #89

keyListeners attached methods don't finish execution

Added by Patrick Talbot almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Start date:
07/15/2010
Due date:
% Done:

50%

Estimated time:
Browser (if web client):

Description

With 5.1.x methods calls from keyListeners event are called ok, but if the field lose focus, the rest of the method is not properly executed.

Reported on behalf of Serge Lesouef

History

#1

Updated by Patrick Talbot almost 14 years ago

Example:

function key_trigger()
{    
    var evt = arguments[0];
    if (evt && evt instanceof java.awt.event.KeyEvent)
    {    
        ct_search(); // execute a search, which loses focus
        elements.nom_search.requestFocus(); // is not executed. if called from inside the ct_search() it works though
    }
}

#2

Updated by Patrick Talbot over 13 years ago

  • Status changed from New to In Progress
#3

Updated by Patrick Talbot over 13 years ago

Just tried with 5.2 and it works fine, calling a search, then having the focus reset from inside the callback method did work for me (Win XP, Servoy 5.2, Java 32-bit 1.6.0_20)
Will give it a try with 5.1.4...

Otherwise can you be more specific about your environment? System/Servoy/Java?

#4

Updated by Patrick Talbot over 13 years ago

  • % Done changed from 0 to 50

5.1.4 works fine too for me.

Could you send me a sample solution to test that, and give me more info about your environment?

Thanks!

#5

Updated by Patrick Talbot over 13 years ago

  • Status changed from In Progress to Closed

I will close this one since I cannot reproduce.
If you have a case where this behavior happens please reopen and attach it to the issue.

Thanks!

Also available in: Atom PDF