title: How to show Search charm when user starts typing in windows 8 app (html & js)
body: <p>Building a Win8 app using JS and Html.  How can I have the Search charm appear as soon as the user starts typing when my app is open?  I have the following code in <code>default.js</code>, just before <code>app.addEventListener("activated", function (args) {</code>:</p>
  
  <pre><code>var searchPane = Windows.ApplicationModel.Search.SearchPane.getForCurrentView();
  var showOnKeyboardInput = searchPane.showOnKeyboardInput;
  searchPane.showOnKeyboardInput = showOnKeyboardInput;
  </code></pre>
  
  <p>When I try that, and I start typing when the app is open, nothing happens. Do I need that snippet on each js file that I have?  I have a home.js and a detail.js (multi-page app).  Thanks.</p>