you could try EventPreview assuming you are using GWT.
Make your entrypoint implement EventPreview interface, as part of your
construction of the application call DOM.addEventPreview(this) and
implement the onEventPreview(Event evt) method to look for your key
combination.
//Adam
jhpark skrev:
> sorry I can't write english well..
>
> I make editor like google doc.
>
> google doc posibble ctrl+s..
>
> but I can't..
>
> I will try javascript.. but it's not work..
>
>
> <SCRIPT LANGUAGE="JavaScript">
> function processKey()
> {
> if( (( event.ctrlKey == true || event.altKey == true ) &&
> (event.keyCode == 78 || event.keyCode == 82)) ||
> (event.keyCode >= 65 && event.keyCode <= 90) || event.keyCode
> == 8)
> {
> event.keyCode = 0;
> event.cancelBubble = true;
> event.returnValue = false;
>
> }
> }
>
> document.onkeydown = processKey;
> </script>
>
>
> I don't know how to..
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---