Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ChangedEvent not triggered for mouse right click DELETE

    Hi,
    I have a textitem in my dynamic form for which I use a ChangedHandler to enable/disable the form based on the input.

    Here is the piece of code:
    Code:
    TradeIdTextItem().addChangedHandler(new ChangedHandler() {
    	public void onChanged(ChangedEvent event) {
    	if(event.getValue() != null) 
                {
    	if(event.getValue().toString().matches("[0-9]*,*[0-9]*")) 
                     disableSearchForm();
                 else 
                     SC.say(presentationMsgs.numericValueForId());
    	}
    	else if (display.getTradeIdTextItem().getDisplayValue().isEmpty())
    		enableSearchForm();
                 }
    	});
    Issue:
    When I enter any value either by typing or copy pasting using ctrl c and ctrl V or Mouse roght click copy and paste, the Onchanged Event is triggered.

    Similarly when I press backspace/ delete buttons or mouse right click CUT, or CTRL X the changed Event triggers.

    But when I mouse right click DELETE , even though the value is deleted from my textitem the changed Event is not triggered.

    Am using smart gwt 2.2, gwt 2.0.3, IE 6 , Windows XP 2002 SP2, DEV Mode

    Did any of you encounter the same issue? Please post your findings. Thanks.
Working...
X