Hi

I am working on an applivation, that includes a form, where I have a
textarea, that I can switch between using a TextArea, and a
RichTextArea. Everything works fine in Firefox (Linux and Windows) and
on Internet Explorer;

However when I try my application on Google Chrome (v6.0.401.1) on
SuSe Linux, I have some problems when in RichTextEdit mode. ( I find
it strange, that with a Google product like GWT, that they do not have
prober support for their own browser; when things are working fine in
other browsers)

1: The <TAB> key does not work.
2: OnFocus and OnBlur handlers are not called when entering/leaving
the RichTextArea (works fine on TextArea)

I am using GWT v2.0.3

the class is defined like this:

public class CslRichTextEdit extends Composite implements
ClickHandler, KeyUpHandler,
                FocusHandler, BlurHandler {

I assign the handlers like this:

                textArea = new TextArea();
                richTextArea = new RichTextArea();
                richTextArea.addFocusHandler(this);
                richTextArea.addBlurHandler(this);
                richTextArea.addKeyUpHandler(this);
                richTextArea.addClickHandler(this);
                textArea.addFocusHandler(this);
                textArea.addBlurHandler(this);
                textArea.addKeyUpHandler(this);
                textArea.addClickHandler(this);

and the Focus/Blur handlers are created like this:

        @Override
        public void onFocus(FocusEvent event) {
                if (rawMode) {
                        textbar.setVisible(true);
                } else
                        toolbar.setVisible(true);
                if (maxChars > 0) {
                        cPanel.setVisible(true);
                }
        }

        @Override
        public void onBlur(BlurEvent event) {
                if (rawMode) {
                        textBuffer = textArea.getText();
                } else {
                        textBuffer = richTextArea.getHTML();
                }
                if (maxChars > 0) {
                        cPanel.setVisible(false);
                        textSize = textBuffer.length();
                        if (textSize > maxChars) {
                                Window.alert("Too many characters in textbox");
                                if (rawMode)
                                        textArea.setFocus(true);
                                else
                                        richTextArea.setFocus(true);
                        }
                }
        }

-- 
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.

Reply via email to