Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Unified Diff: remoting/webapp/remoting.js

Issue 9875031: [Chromoting] Move the onBlur handler from window to the plugin element. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/client_session.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/remoting.js
diff --git a/remoting/webapp/remoting.js b/remoting/webapp/remoting.js
index 26184d8fd89d3580d54780af2f051792ab3d77ab..384343f40b7a10c9dfbb0fb402a5a9d7b6cb4f40 100644
--- a/remoting/webapp/remoting.js
+++ b/remoting/webapp/remoting.js
@@ -53,7 +53,6 @@ remoting.init = function() {
document.getElementById('current-email').innerText = email;
}
- window.addEventListener('blur', pluginLostFocus_, false);
// The plugin's onFocus handler sends a paste command to |window|, because
// it can't send one to the plugin element itself.
window.addEventListener('paste', pluginGotPaste_, false);
@@ -150,16 +149,6 @@ function pluginGotPaste_(eventUncast) {
}
/**
- * Callback function called when the browser window loses focus. In this case,
- * release all keys to prevent them becoming 'stuck down' on the host.
- */
-function pluginLostFocus_() {
- if (remoting.clientSession && remoting.clientSession.plugin) {
- remoting.clientSession.plugin.releaseAllKeys();
- }
-}
-
-/**
* If the user is authenticated, but there is no email address cached, get one.
*/
function refreshEmail_() {
« no previous file with comments | « remoting/webapp/client_session.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698