Has the keypress event changed?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Has the keypress event changed?

cityEHR-2
Hi,
The following example of handling a keypress event works in Orbeon 3.9
CE but not in 2017-2 CE or 2018-2 CE (haven't tested on any other versions).
Am I doing something wrong or did it change at some point?
Thanks,
John

<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
     xmlns:ev="http://www.w3.org/2001/xml-events">

     <xhtml:head>
         <xforms:model id="main-model">
             <xforms:action ev:event="keypress" ev:observer="#document"
xxforms:text="r">
                 <xforms:message ref="'Yes!'"/>
             </xforms:action>
         </xforms:model>
     </xhtml:head>
     <xhtml:body>
         <xhtml:h1>Can this handle the press r?</xhtml:h1>
     </xhtml:body>
</xhtml:html>


--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Has the keypress event changed?

Alessandro  Vernet
Administrator
Hi John,

Indeed, I can reproduce this. We'll look into it, and I'll follow-up on this thread once I know more about what is going on.

‑Alex

On Fri, Mar 29, 2019 at 12:06 AM 'John Chelsom' via Orbeon Forms <[hidden email]> wrote:
Hi,
The following example of handling a keypress event works in Orbeon 3.9
CE but not in 2017-2 CE or 2018-2 CE (haven't tested on any other versions).
Am I doing something wrong or did it change at some point?
Thanks,
John

<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
     xmlns:ev="http://www.w3.org/2001/xml-events">

     <xhtml:head>
         <xforms:model id="main-model">
             <xforms:action ev:event="keypress" ev:observer="#document"
xxforms:text="r">
                 <xforms:message ref="'Yes!'"/>
             </xforms:action>
         </xforms:model>
     </xhtml:head>
     <xhtml:body>
         <xhtml:h1>Can this handle the press r?</xhtml:h1>
     </xhtml:body>
</xhtml:html>


--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Has the keypress event changed?

Alessandro  Vernet
Administrator
Hi John,

We've changed how event handlers work and this is fixed in the current
codebase that will go in 2019.1. If you're using Orbeon Forms CE, I'm afraid
that you'll have to wait for the 2019.1 release. If using Orbeon Forms PE
could make sense for you, just let me know, and we'll look into fixing this
in a 2018.2 point release, which will be available sooner than 2019.1. (And
I'm referring to Orbeon Forms PE specifically because we're only doing point
releases for Orbeon Forms PE, not Orbeon Forms CE.)

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet