title: Press Enter after I scanned a CodeBar
body: <p>I'm looking the way to press Enter after I finish writing in a input, I'm scanning codebars in my input but after the code is insert it in the input I want to automatic press enter and call my function. This is my code for my input:</p>
  
  <pre><code> &lt;div class="form-group"&gt;
          @Html.LabelFor(model =&gt; model.Id_Componente, "Id_Componente", htmlAttributes: new { @class = "control-label col-md-2" })
          &lt;div class="col-md-10"&gt;
              &lt;input class="form-control" type="text" id="Id_Componente" name="Id_Componente" autofocus="autofocus" onkeypress="FunctionP(event)" /&gt;
              @Html.ValidationMessageFor(model =&gt; model.Id_Componente, "", new { @class = "text-danger" })
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>But its only work when I press Enter in the Keyboard, and I want to do something the after I scanned the code bar automatic call my function: FunctionP(event).  Sorry for my English.</p>