title: PrimeFaces Accordion panel keyboard focus on current tab command button
body: <p>I have an accordion panel with few tabs with in a form . Each tab has a command button (I use the update and process attributes to process specific inputs with a tab). I have set the multiple attribute to true on the accordion panel. When the page initially loads  the first tab is open by default. If i hit the enter key on the key board then the command button in the first tab has the keyboard focus and the fields are processed. now I leave the first tab open and open another tab and i hit the enter key the keyboard focus is still on the command button on the first tab . I tried using the p:focus with for/context attributes but with no help.</p>
  
  <pre><code>&lt;h:form id="calculatorsNTools"&gt;
  &lt;p:accordionPanel multiple="true"&gt;
      &lt;p:tab title="Teenage Check"&gt;
          &lt;h:inputText id="age1" required="true" label="Age"
              value="#{calculatorBacking.age}" validatorMessage="Enter a value"&gt;
              &lt;f:validateDoubleRange minimum="1" /&gt;
          &lt;/h:inputText&gt;
          &lt;p:message for="age1" id="msgage1" /&gt;
          &lt;h:panelGrid columns="3" id="gridTAresult"&gt;
              &lt;p:commandButton id="calculateTA"
                  action="#{calculatorBacking.calculateTA}" value="Calculate"
                  process="@this,age1"
                  update="gridTAresult"&gt;
              &lt;/p:commandButton&gt;
              &lt;b&gt; Teenage (y/n)&lt;/b&gt;
              &lt;h:outputLabel id="resultTA" value="#{calculatorBacking.resultTeenAge}"&gt;&lt;/h:outputLabel&gt;
          &lt;/h:panelGrid&gt;
           &lt;/p:tab&gt;
      &lt;p:tab title="Retirement Check"&gt;
              &lt;h:inputText id="age2" required="true" label="Age"
                  value="#{calculatorBacking.age}" validatorMessage="Enter a value"&gt;
                  &lt;f:validateDoubleRange minimum="1" /&gt;
              &lt;/h:inputText&gt;
              &lt;p:message for="age2" id="msgage2" /&gt;
              &lt;h:panelGrid columns="3" id="gridREresult"&gt;
                  &lt;p:commandButton id="calculateRE"
                      action="#{calculatorBacking.calculateRE}" value="Calculate"
                      process="@this,age2"
                      update="gridREresult"&gt;
                  &lt;/p:commandButton&gt;
                  &lt;b&gt; Retirement (y/n)&lt;/b&gt;
                  &lt;h:outputLabel id="resultRE" value="#{calculatorBacking.resultRetirement}"&gt;&lt;/h:outputLabel&gt;
              &lt;/h:panelGrid&gt;
      &lt;/p:tab&gt;
  &lt;/p:accordionPanel&gt;
  &lt;h:form&gt;
  </code></pre>