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

    rich:hotKey and rich:popupPanel

    Sergey Morenets Novice



      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


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


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


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