W3C home > Mailing lists > Public > www-amaya@w3.org > January to March 1998

Re: problem with my modifications

From: Irene VATTON <Irene.Vatton@imag.fr>
Date: Fri, 27 Feb 1998 12:48:41 +0100
Message-Id: <199802271148.MAA29411@tahiti.inrialpes.fr>
To: web2 <soft@earthlink.net>
Cc: www-amaya@w3.org
In-reply-to: Your message of Wed, 25 Feb 1998 18:58:35 -0800."
             <34F4DA5A.531656A7@earthlink.net> 
> Irene,
> I implemented your design below and it works fine except the text input fields and submit buttons
> do not work. Essentially, what is happening is that when a text input field is selected the field is
> highlighted but CheckType is never invoked.

This is correct.

> CheckType is invoked when I press the enter key but
> typing text has no effect.

This is OK.

> By the way the enter key causes a newline to be inserted into the TEXT_UNIT
> preceding the Text_Input element.

I see. You have to remove editing functions in the amaya.keyboard.
Remove lines:
<Key>Delete:    TtcDeleteSelection()
<Key>Return:    TtcCreateElement()
<Key>L6:        TtcCopyToClipboard()
<Key>L8:        TtcPasteFromClipboard()
<Key>F6:        TtcCopyToClipboard()
<Key>F8:        TtcPasteFromClipboard()
Ctrl <Key>Space:        TtcInsertChar("\240")
Ctrl <Key>d:    TtcDeleteSelection()
Ctrl <Key>w:    TtcCutSelection()
Ctrl <Key>y:    TtcPaste()


> The Editor documentation says that the return from the callback
> for ElemTextModify.Pre is ignored, unlike most of the other .Pre events, is that part of the problem.
> 
> I know this is a vague question but can you give a hint as to where to look for what's wrong?
> 
> Also note that I have removed all the menu items and buttons that allow the document to be
> edited. Could this cause a problem?

Of course, no.

Regards
  Irene.
Received on Friday, 27 February 1998 06:49:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 20 September 2007 14:24:22 GMT