2 Replies Latest reply on Feb 6, 2014 4:58 PM by Sergey Morenets

    rich:hotKey and rich:popupPanel

    Sergey Morenets Novice

      Hi

       

      Is it possible to use hot key to manage popup panel(for example, hide popup panel if Escape key is pressed)?

       

      The code below worked earlier but doesn't work with 4.3.5

       

      <h:form>
          <rich:popupPanel id="editWindow" autosized="true"
                           domElementAttachment="form">
              <rich:hotKey key="Esc">
                  <rich:componentControl target="editWindow" operation="hide" />
              </rich:hotKey>
          </rich:popupPanel>
      </h:form>
      

       

      I tried to use selector, but it didn't help though.

       

      <rich:hotKey key="Esc" selector="#editWindow" handler="#{rich:component('editWindow')}.hide()" />
      

       

      Thanks