I have implemented what I called "instant search" like in the starmenu using this simple JS code:
document.body.addEventListener('keypress', function(event) {
var searchPane, _ref;
if ((_ref = document.activeElement.tagName.toLowerCase()) === 'input' || _ref === 'select') {
return;
}
if (event.ctrlKey || event.key.length > 1) {
return;
}
searchPane = Windows.ApplicationModel.Search.SearchPane.getForCurrentView();
searchPane.show(event.key);
event.preventDefault();
event.stopImmediatePropagation();
return true;
});
This is generated code from CoffeeScript, but I guess you get the idea :)