thank your answer.. thank you..
public boolean onEventPreview(Event evt) {
evt.preventDefault(); <-------- add this method
( 1 )
int keyCode = DOM.eventGetKeyCode(evt);
boolean ctrl = DOM.eventGetCtrlKey(evt);
if ( ctrl && keyCode == 83 ) { // 83 is 's' ->
ctrl + s
evt.preventDefault(); <-------------- add this metohd
( 2 )
save();
return false;
}
return true;
}
public void save(){
~~~~
~~~~~
}
add ( 1 ).. not work
add ( 2 ).. not work
add (1) (2) work..
so I solve this problem...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---