Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / keybinding / continue_propagation / injected.js
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 var port = chrome.extension.connect({name: 'continue_propagation'});
6 document.body.addEventListener('keyup', function(evt) {
7   if (evt.keyCode == 70 /* F */)
8     port.postMessage({result: true});
9   }, true);